如何通过命令行创建和设置一个MySQL用户答:on test.hr(*.*:表示所以库与表) to [email protected] identified by '123';这里我只是举个权限的例子出来(select,insert,update,delete,create,drop,index,alter,references ),还有很多种的,如果是所有权限:all privileges on 3、查新增用户:select user,host,password from mysql.user;