grant all privileges on 数据库名称.* to 数据库用户名@‘授权范围‘ identified by ‘数据库用户名密码‘;
grant all privileges on wxactivity.* to mysqluser@‘%‘ identified by ‘mysqluseradmin‘;(这是例子,%代表授权全网,localhost代表授权本机)
linux下mysql创建库后授权
原文:https://www.cnblogs.com/publicjava/p/9385027.html