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密码命令