创建用户, 所有IP可访问
create user 'nameOfUser'@'%' identified by 'passwordOfUser';
授予某数据库的权限
grant all privileges on tableName.* to 'nameOfUser'@'%';
修改密码
update user set password=password(“xxxxx”) where user=“root”;
创建用户, 所有IP可访问
create user 'nameOfUser'@'%' identified by 'passwordOfUser';
授予某数据库的权限
grant all privileges on tableName.* to 'nameOfUser'@'%';
修改密码
update user set password=password(“xxxxx”) where user=“root”;