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

 

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

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

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄