grant allprivileges on *.* to 'root'@'%' identified by '密码';
flushprivileges;
grant allprivileges on 表名.* to '用户名'@'localhost' identified by'密码';
grant allprivileges on 表名.* to '用户名'@'%' identified by '密码';
flushprivileges;
Insertinto mysql.user(Host,User,Password,max_user_connections)values('localhost','用户名&#