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
- mysql -u root -p
- grant all privileges on . to root@’%’ identified by ‘123456’ with grant option;
- flush privileges;