grant all privileges on 数据库名称.* to 数据库用户名@‘授权范围‘ identified by ‘数据库用户名密码‘;
grant all privileges on wxactivity.* to [email protected]‘%‘ identified by ‘mysqluseradmin‘;(这是例子,%代表授权全网,localhost代表授权本机)
原文地址:https://www.cnblogs.com/publicjava/p/9385027.html
时间: 2024-09-29 08:34:10