0

I tried to connect mySQL from remote server I followed these commands: convert

bind-address = 127.0.0.1

to

bind-address = 0.0.0.0

and followed by,

systemctl restart mysql.service

then login to mySQL server in local machine and gave following command:

GRANT ALL ON databaseName.* TO 'user'@'xx.xx.xx.xx' IDENTIFIED BY 'password';

then tried in remote server with following command:

mysql -u user -p -h xx.xx.xx.xx

Got error as:

ERROR 2003 (HY000): Can't connect to MySQL server on 'xx.xx.xx.xx'

Can someone help on this? How can I connect mySQL remotely?

usergs
  • 1,344
  • 3
  • 9
  • 18

0 Answers0