mysql>GRANT SELECT,INSERT,UPDATE,DELETE ON [db_name].* TO [username]@[ipadd] identified by ‘[password]‘;
[username]:远程登入的使用者代码
[db_name]:表示欲开放给使用者的数据库称
[password]:远程登入的使用者密码
ep:
mysql> GRANT SELECT,INSERT,UPDATE,DELETE ON xxx.* TO " identified by ‘xxxxxx‘;
mysql> flush privileges;
时间: 2024-10-05 05:04:39