2 server buy ovh.com and 1
server machine: esx szerver and
another server 2.: database Mysql,
not connect to database
how to fix?
password is correct!
server.cfg:
set mysql_connection_string “server=XX.XX.XX.XXX;database=szerver;userid=root;password=123445d
Are both machine able to ping each other?
yes connect
Have you check your firewall?
no firewall on
Ensure your MySQL database has remote connection allowed. It’s often disabled for security reasons.
yes enabled.
You can’t and shouldn’t utilize ROOT for this, as if ROOT is enabled to be connected from anywhere, then ROOT is able to do anything within the database unrestricted and potentially hazardous incl. all data lost with 1 command from any location anywhere. It would be automatically bruteforced within days by global botnets etc.
You need to make a different user for external connections, and then go enable it for the IP(s) you are trying to connect from. If you then set the new user to 0.0.0.0 you can enable all on the new account.
