Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to get mysql database hostname?

  1. #1
    Rapala is offline x10Hosting Member
    Join Date
    May 2010
    Posts
    6

    How to get mysql database hostname?

    I want to make a program which must use my mysql database. How can i get mysql database hostname?
    if i write my hostname, program cant connect to database

  2. #2
    carl6969's Avatar
    carl6969 is offline Community Support Team
    Join Date
    May 2009
    Location
    Calf Creek TX
    Posts
    6,862

    Re: How to get mysql database hostname?

    Hostname
    MYSQL database server is localhost


  3. #3
    Gouri's Avatar
    Gouri is offline Community Paragon
    Join Date
    Oct 2007
    Location
    India
    Posts
    4,553

    Re: How to get mysql database hostname?

    Quote Originally Posted by Rapala View Post
    I want to make a program which must use my mysql database. How can i get mysql database hostname?
    if i write my hostname, program cant connect to database
    The database host is localhost.

    If you are trying to connect to mysql from outside. For security reasons remote mysql is disabled so you can't connect from outside. But the scripts on your hosting account can connect to database using localhost as dbhost
    Last edited by Gouri; 05-13-2010 at 10:26 AM.
    If you feel my post is useful then click to give Reputation (bottom left corner of this post)

    X10 Hosting | News and Announcements | Premium Hosting | VPS Hosting | Prime Membership

    Tech Community

  4. #4
    Rapala is offline x10Hosting Member
    Join Date
    May 2010
    Posts
    6

    Re: How to get mysql database hostname?

    localhost? i should use in program localhost or my registered idealpost.x10hosting.com?

  5. #5
    Rapala is offline x10Hosting Member
    Join Date
    May 2010
    Posts
    6

    Re: How to get mysql database hostname?

    How to enable remote mysql?

  6. #6
    calistoy's Avatar
    calistoy is offline Free Support Volunteer
    Join Date
    Aug 2008
    Location
    USA
    Posts
    5,600

    Re: How to get mysql database hostname?

    Quote Originally Posted by Rapala View Post
    How to enable remote mysql?
    Not possible. It's disabled for security reasons.

  7. #7
    Rapala is offline x10Hosting Member
    Join Date
    May 2010
    Posts
    6

    Re: How to get mysql database hostname?

    LOL? It meance that i cant use my program with this hosting?!

  8. #8
    Anna's Avatar
    Anna is offline I am just me
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,708

    Re: How to get mysql database hostname?

    if the program is located on our servers you can use it, in which case the program would be able to connect using localhost.

    If the program is located on your computer, no it will not be possible to use it as you can not connect to the mysql server from an IP address outside of our network.
    Do you have trouble reaching your site?
    Check here first: News and Announcements


    Don't forget that x10hosting has a chat service as well. Come and join the fun
    There's a lot helpful users there if need help building your site
    Connect to our chat

  9. #9
    Rapala is offline x10Hosting Member
    Join Date
    May 2010
    Posts
    6

    Re: How to get mysql database hostname?

    It located in my PC, but i saw 'Remote mysql' option in cPanel. Does it work?

  10. #10
    vishal's Avatar
    vishal is offline -::-X10 Guru-::-
    Join Date
    Nov 2009
    Location
    INDIA
    Posts
    5,254

    Re: How to get mysql database hostname?

    Quote Originally Posted by Rapala View Post
    It located in my PC, but i saw 'Remote mysql' option in cPanel. Does it work?
    No ,its disabled on free hosting
    Last edited by vishal; 05-13-2010 at 10:49 AM.
    Regards ~ Vishal
    Giving Reputation (at bottom of my post ) is the best way to encourage the person who helped you on forums.

Page 1 of 2 12 LastLast

Similar Threads

  1. database hostname
    By ifke001002 in forum Free Hosting
    Replies: 1
    Last Post: 05-11-2010, 11:26 AM
  2. MySQL, Database server hostname...
    By hatchetdown in forum Free Hosting
    Replies: 6
    Last Post: 03-13-2010, 03:07 PM
  3. Hostname for Database
    By dontbeajew in forum Free Hosting
    Replies: 1
    Last Post: 03-01-2010, 03:21 AM
  4. Hostname for Joomla Database MySQL
    By RedOrb in forum Free Hosting
    Replies: 3
    Last Post: 03-16-2008, 07:29 AM
  5. MySQL Database hostname
    By Relemar in forum Free Hosting
    Replies: 4
    Last Post: 09-09-2007, 08:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
dedicated servers