美文网首页
Docker启动的MYSQL无法连接时

Docker启动的MYSQL无法连接时

作者: Fty1 | 来源:发表于2020-04-18 01:01 被阅读0次

    mysql> grant all privileges on . to 'root'@'%' identified by 'password123';
    mysql> update mysql.user set Grant_priv = 'Y' where user = 'root';
    mysql> delete from user where user='root' and host='localhost';
    mysql> flush privileges;

    相关文章

      网友评论

          本文标题:Docker启动的MYSQL无法连接时

          本文链接:https://www.haomeiwen.com/subject/legpvhtx.html