创建用户名为tpuser的用户,该用户的密码为123456,可以从任意ip登录 create user 'tpuser'@'%' identified by '123456'; 查看用户tpuser的权限情况 show grants for tpuser; 给用户tpuser赋予testdb这个数据库的所有权限 GRANT ALL PRIVILEGES ON `testdb`.* TO 'tpuser'@'%'; 刷新权限配置,使配置生效 flush privileges;