mysql创建用户并赋予权限

来源:互联网 发布:windows 桌面出现淘宝 编辑:程序博客网 时间:2024/05/22 13:30

首先进入mysql  数据库;

use mysql

创建用户:

create user 'sds'@'localhost'  identified by 'asdsdfas';

授予权限:

grant insert,delete,update,select,alter,create,create view,drop,execute,references on *.* to 'sds'@'localhost';

验证是否添加

select * from mysql.user\G