I'm currently hosting a small website on my college domain where people can fill out a form and post it to database. I'm trying to figure out how I can set up/edit my MySQL so that its not localhost.

This is the current setting:


Obviously when people fill out the form right now it fails since my MySQL is on localhost. I tried setting the host name to my IP but that didn't work as well.

  • So can users see the form but just get errors when the application attempts to connect to the database? Or have you not yet even configured that far?
    – Dan
    Dec 20, 2013 at 18:43
  • 1
    Not enough information here to help you. Where is the form/application hosted?
    – Dan
    Dec 20, 2013 at 18:45
  • "It didn't work" is not a useful explanation of what you need help with. What exactly happens, including the specific error message, when you try to connect to your IP address and the default port, 3306 (unless you deliberately configured MySQL to be on a different port)? Dec 20, 2013 at 20:50

1 Answer 1


If I have understand you, what you want is to connect to your mysql server, from another PC different of which is running your mysql service. In that case, what you need to enter in the Hostname, is the IP address of your mysql server.

  • 1
    How do I find out what the IP address of my MySQL server is?
    – Nick
    Dec 20, 2013 at 16:39
  • Edit: I've tried using the IP of my computer where I currently run MySQL but that didn't work. Is there a specific port I have to use?
    – Nick
    Dec 20, 2013 at 16:49
  • Do you have an online host for your MySQL?
    – Ryan
    Dec 20, 2013 at 16:53
  • Yes, its hosted on my computer that I'm currently using.
    – Nick
    Dec 20, 2013 at 16:54
  • Anyone???? There has got to be a way to do this....
    – Nick
    Dec 20, 2013 at 17:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.