Mysql创建用户并授权 创建用户 use mysql; # % 所有地址都可用 create user 'userName'@'%' identified by ‘password'; 授权 # all : 所有权限 # test.* 所有表 grant all on database.table to 'username' identified by 'password';