时间:2021-07-01 10:21:17 帮助过:71人阅读
1. 授权用户root使用密码jb51从任意主机连接到mysql服务器:
代码如下:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'jb51' WITH GRANT OPTION;
flush privileges;
代码如下:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'218.12.50.60' IDENTIFIED BY 'jb51' WITH GRANT OPTION;
flush privileges;
希望本文所述对大家的MySQL数据库程序设计有所帮助。