添加远程用户admin密码为password
grant all privileges on *.* to admin@localhost identified by 'password' with grant option
grant all privileges on *.* to admin@"%" identified by 'password' with grant option
grant all privileges on *.* to admin@localhost identified by 'password' with grant option
grant all privileges on *.* to admin@"%" identified by 'password' with grant option

本文介绍如何在MySQL中创建一个名为admin的远程用户,并为其分配所有权限。通过两条SQL语句,分别授予该用户在本地及任意主机上的最高权限。
2443

被折叠的 条评论
为什么被折叠?



