MySql 创建新用户

grant all privileges on scdb.* to szl@localhost identified by '******';

 

说明:1.all privileges 所有可用权限,也可单独分别列出,

          比如:select,insert,update,delete,create,drop,index,alter,grant,references,reload,shutdown,process,file等14个权限

           2.   scdb.*    数据库名,* 代表该数据库下所有表、视图、存储过程等

           3.    szl@localhost   szl是用户名   @ 后面是IP地址,此处表明是本地

           4.    identified by '******'    *代表密码

posted @ 2019-04-26 17:56  JimmyShan  阅读(1089)  评论(0编辑  收藏  举报