1. 授权用户root使用密码maozhuxi123从任意主机连接到mysql服务器
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'maozhuxi123' WITH GRANT OPTION;
flush privileges;
2.授权用户root使用密码maozhuxi123从指定ip为218.12.50.60的主机连接到mysql服务器
GRANT ALL PRIVILEGES ON *.* TO 'root'@'218.12.50.60' IDENTIFIED BY 'maozhuxi123' WITH GRANT OPTION;
flush privileges;
除非注明,均为湛蓝天空原创,转载请注明本文网址:http://skyhome.cn/server/487.html