2003 can’t connect to mysql server on 10038

Run the following command to change the 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;