What is the default root pasword for MySQL 5.7

前端 未结 13 1156
梦谈多话
梦谈多话 2020-12-22 16:55

Cannot login to MySQL database after fresh install with root ID and empty/no password like other older MySQL versions do

13条回答
  •  醉梦人生
    2020-12-22 17:50

    After you installed MySQL-community-server 5.7 from fresh on linux, you will need to find the temporary password from /var/log/mysqld.log to login as root.

    1. grep 'temporary password' /var/log/mysqld.log
    2. Run mysql_secure_installation to change new password

    ref: http://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html

提交回复
热议问题