创建用户:create user "username"@"host" identified by "password";
修改用户密码:
用set password命令:SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123456');
用mysqladmin:mysqladmin -uroot -p123456 password 1234abcd
赋予权限:grant all privileges on `test`.* to 'test'@'%' ;
MySQL新增用户并赋予权限
标签:
数据库
上一篇:
没有了