What is the default root pasword for MySQL 5.7

What is the default root pasword for MySQL 5.7

First of all, let's install MySQL-community-server 5.7 on fresh CentOS 6.

--------------- On RHEL/CentOS 6 ---------------
# wget http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm
# yum localinstall mysql57-community-release-el6-7.noarch.rpm
# yum repolist enabled | grep "mysql.*-community.*"

# yum install mysql-community-server
# service mysqld start

ref: http://www.tecmint.com/install-latest-mysql-on-rhel-centos-and-fedora/  

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

 

paaassss

 

vovando Avatar

Leave a Reply

Your email address will not be published. Required fields are marked *