MySQL的账户被锁定怎么办? 用Navicat连接数据库报错如下: Access denied for user 'root'@'localhost' (using password:YES) 原因:MySQL数据库的root账户被锁定 解决办法: 1. 忽略密码,连接登录数据库 a) 打开服务,关闭mysql服务,命令:services.msc b) 打开MySQL目录下的my.ini文件,在最后一行加入 skip-grant-tables 并保存 c) 重启mysql服务 2. 使用roo
===========================================================二,忘记本地root的登录密码解决过程:1.编辑/mysql/my.ini在[mysqld] 配置部分添加一行skip-grant-tables 2.保存后重启mysql[root@localhost etc]# service mysqld restartShutting down MySQL. [
B.5.3.2 How to Reset the Root Password If you have never assigned a root password for MySQL, the server does not require a password at all for connecting as root. However, this is insecure. For instructions on assigning passwords, see Section 2.18.4,