mysql授权访问数据库

授权给mysql权限

将所有的权限赋值给某个用户

grant all privileges on *.* to username@"%" identified by 'password'

grant all on gamesp.* to newuser@localhost identified by 'password';

grant all privileges on *.* to test@"%" identified by '123456'

grant all on 数据库名.* to test@localhost identified by '密码';

grant all privileges on *.* to test@'%' identified by "123456";

  

posted on 2019-07-26 19:31  lewisat  阅读(203)  评论(0编辑  收藏  举报

导航