DEV Community

John Ding
John Ding

Posted on

Cannot connect to Mysql in Docker

Error: Host ‘172.17.0.1’ is not allowed to connect to this MySQL server

  1. CREATE USER 'newuser'@'%' IDENTIFIED BY 'password';
  2. GRANT ALL PRIVILEGES ON . TO 'newuser'@'%';
  3. FLUSH PRIVILEGES;

https://github.com/docker-library/mysql/issues/275

Top comments (0)