标签:date HERE mysql ble quit 新建 upd cal 用户
1.首先确保新用户至少拥有一个库表的权限。
GRANT privileges ON databasename.tablename TO ‘username‘@‘host‘
2.修改密码
update mysql.user set password=password(‘新密码‘) where User="test" and Host="%"
注意:Host 值设为“localhost”时,此用户只能在本机登陆。设为“%”时,可以在任意一台电脑登陆。设置为某个ip地址,目标ip的地址可以登陆。
3。刷新权限
flush privileges;
4. 退出
quit;
5.重新用新用户登陆,即可
标签:date HERE mysql ble quit 新建 upd cal 用户
原文地址:https://www.cnblogs.com/haoyangblog/p/10122554.html