今天在Redhat7下面安装MySQL,接下来进行启动MySQL 启动结果如下: [[email protected] log]# service mysqld start Redirecting to /bin/systemctl start mysqld.service Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details. 那么我们遇到这样的
Enter current password for root (enter for none): ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 报错信息显示useing passowrd:YES 说明密码是对的,但是拒绝用户root登陆找到mysql配置文件进行修改添加skip-grant-tables表示跳过密码验证登陆然后重启mysql服务 systemctl rest