This topic is locked

Can't connect in a remote database.

10/7/2015 3:37:55 AM
PHPRunner General questions
G
gbhmayer1 author

I am running my system locally ( localhost ) but connected to a remote MySQL database . The system runs smoothly. When I run the same system on a remote web server , the message : Fata error: Can not connect to MySQL on ' 198 ... ' in /home/..../MySQLiConnection.php on line 84. What might be happening?
(using PHPRunner 8.0)

Sergey Kornilov admin 10/13/2015

Sometimes you will need to use 'localhost' as MySQL server address while running PHP application on the same machine where MySQL is. That IP address may only work when you connect from remote machine.