Mysql 5.6及以后版本出处于安全考虑,root密码不为空。所以在MySQL的安装过程中,会生成一个随机密码,
关于MySQL5.6及以后版本安装以后启动不了的问题
执行 # /etc/init.d/mysql stop
然后 #mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
再执行 #mysql -u root mysql

关于MySQL5.6及以后版本安装以后启动不了的问题
进入MySQL以后
执行>UPDATE user SET Password=PASSWORD where USER='root';

exit 退出mysql
重新登陆 #mysql -uroot -p 键入passwd
登陆成功
关于MySQL5.6及以后版本安装以后启动不了的问题

转载于:https://blog.51cto.com/13334066/2049284

相关文章:

  • 2021-04-05
  • 2021-08-08
  • 2021-08-24
  • 2022-12-23
  • 2022-02-04
  • 2021-05-13
  • 2022-01-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-20
  • 2021-06-09
  • 2021-06-22
  • 2022-01-05
  • 2021-05-30
  • 2022-12-23
相关资源
相似解决方案