Host '192.168.2.189' is not allowed to connect to this MySQL server

来源:互联网 发布:手机淘宝查看附近的人 编辑:程序博客网 时间:2024/06/15 15:36

 

 

 

授权IP为192.168.2.189的用户,链接到本机数据库

GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.2.189' IDENTIFIED BY 'root' WITH GRANT OPTION


 

  设置密码为‘root’