linux下mysql创建库后授权

grant all privileges on 数据库名称.* to 数据库用户名@'授权范围' identified by '数据库用户名密码';

grant all privileges on wxactivity.* to mysqluser@'%' identified by 'mysqluseradmin';(这是例子,%代表授权全网,localhost代表授权本机)

posted @ 2018-07-29 13:17  Honest,I  阅读(247)  评论(0编辑  收藏  举报