忘记密码
- 找到my.ini,搜索“[mysqld]”,在其下一行加上“skip-grant-tables”,保存并退出.
- 重启MySQL服务
进入mysql 命令行
use mysql; update user set authentication_string=password("123456") where user="root"; flush privileges;
- 再次重启MySQL服务,成功。
msyql 某个账号密码 iP授权
grant all privileges on 库名.表名 to '用户名'@'IP地址' identified by '密码' with grant option;
flush privileges;
Comment here is closed