grant select on *.* to 'username'; 赋予查询权限
grant all privileges on *.* to 'username' @"%" identified by "123" 赋予所有权限
grant select on *.* to 'username'; 赋予查询权限
grant all privileges on *.* to 'username' @"%" identified by "123" 赋予所有权限
转载于:https://www.cnblogs.com/MUQINGFENG123/p/10904276.html