grant 权限1,权限2,…权限n on 数据库名称.表名称 to 用户名@用户地址 identified by ‘连接口令’;
控制到库级的命令示范:
grant all privileges on barcode.* to barcode@localhost identified by '123456';
用户名为:barcode
库名:barcode
密码:123456
SET PASSWORD FOR barcode@ localhost = PASSWORD( '********' )
更改mysql密码命令
赋权限和创建用户
最新推荐文章于 2024-08-28 12:25:49 发布
3155

被折叠的 条评论
为什么被折叠?



