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)
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.