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 '******'    *代表密码


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM