Reputation: 790
For the sake of anonymity, let's pretend my website is called, www.example.com
.
I need to access another server with an IP address of 46.258.254.21
from www.example.com
.
The following config works fine:
define ( 'DB_HOST', 'localhost' );
define ( 'DB_USER', 'siteroot' );
define ( 'DB_PASSWORD', 'sitepwd' );
define ( 'DB_DB', 'my_db' );
The following config did not work:
define ( 'DB_HOST', '46.258.254.21' );
define ( 'DB_USER', 'ifd' );
define ( 'DB_PASSWORD', 'pwd' );
define ( 'DB_DB', 'my_db1' );
It threw a Could not connect to MySQL server was not found on this server.
exception.
What might be preventing me from connecting to 46.258.254.21
?
Upvotes: 1
Views: 78
Reputation: 41
Things to check:
Upvotes: 1