美文网首页
Mysql 允许所有IP访问

Mysql 允许所有IP访问

作者: _oeo___ | 来源:发表于2018-06-06 22:36 被阅读23次

    随手记

    $ mysql -u root -p
    Enter password:
    
    mysql> use mysql
    
    #mysql> GRANT ALL ON *.* to root@'192.168.1.4' IDENTIFIED BY 'your-root-password'; 
    
    
    mysql> GRANT ALL ON *.* to root@'%' IDENTIFIED BY 'root'; 
    
    mysql> FLUSH PRIVILEGES;
    

    相关文章

      网友评论

          本文标题:Mysql 允许所有IP访问

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