Linking LocalHost(Server) to Dedicated Server MySQL Database
#7

Quote:
Originally Posted by Tass007
Посмотреть сообщение
This is the whole thing. I want to connect to the Mysql database that is connected to my dedicated server so thst I can test things through my local host and be able to have the same database as my dedicated server. Im pretty sure that this is possible I just need to know how to fix this error
127.0.0.1 / localhost uses MySQL on the machine it's called on. If you use 'localhost' locally, it will try to load the MySQL server on your local machine. If you want to use the database linked to your dedicated server, you have to use the IP of the service that hosts the MySQL server, usually your dedicated machine.

You can still use localhost when you are calling it from your dedicated because then it will load the MySQL server through your dedicated server.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)