标签:
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘IDENTIFIED BY ‘123456‘ WITH GRANT OPTION;
//从任何主机连接到mysql服务器。root用户名,123456作为密码.
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘192.168.0.28‘ IDENTIFIED BY ‘123456‘ WITH GRANT OPTION;
//允许用户root从ip为192.168.0.28的主机连接到mysql服务器,并使用123456作为密码。
flush privileges;
//修改立即生效
标签:
原文地址:http://www.cnblogs.com/sss-justdDoIt/p/5602590.html