mysql 连接
mysql -h 127.0.0.1 -u root -p
查看用户
mysql>select host,user from mysql.user; //一定要有分号!!
创建用户
mysql>create user "user"@"localhost" identified by "passwd";
博客列表 >mysql小记
mysql 连接
mysql -h 127.0.0.1 -u root -p
查看用户
mysql>select host,user from mysql.user; //一定要有分号!!
创建用户
mysql>create user "user"@"localhost" identified by "passwd";