mysql链接远程服务的一些问题

310 阅读1分钟

2003 can't connect to mysql server on 10038

vim /etc/mysql/mysql.conf.d,修改mysqld.cnf中的 bind-address = 127.0.0.1 to bind-address = 0.0.0.0

1130: Host 'xxx' is not allowed to connect to thisMySQL server

  1. mysql -u root -p
  2. grant all privileges on . to root@'%' identified by '123456' with grant option;
  3. flush privileges;