1、登录:mysql -u root -p
2、查看现有用户,select host,user,authentication_string from mysql.user;
3、新建用户,create user "sss"@"host" identified by "123";
4、再次查看用户列表,可以看到sss用户已创建,select host,user,authentication_string from mysql.user;
1、登录:mysql -u root -p
2、查看现有用户,select host,user,authentication_string from mysql.user;
3、新建用户,create user "sss"@"host" identified by "123";
4、再次查看用户列表,可以看到sss用户已创建,select host,user,authentication_string from mysql.user;