If we want our MySQLÂ to be accessible from other hosts, we need to grant those accesses.
> mysql -u root -p
> password:somewordpress
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' identified by 'wordpress';
UPDATE mysql.user SET host='%' WHERE user='root';
grant all privileges on *.* to 'docker'@'%' with grant option;
Leave a Reply