MySql on CENTOS 7
# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
# sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
# yum update -y
# yum install mysql-server -y
# systemctl start mysqld
# sudo mysql_secure_installation
# sudo grep 'temporary password' /var/log/mysqld.log
Note: If MySQL 5.7 was installed, you will need the temporary password that was created during installation. This password is notated in the /var/log/mysql.log file and can be quickly found using the following command.
Root login
# mysql -u root -p
Output
mysql>
# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
# sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
# yum update -y
# yum install mysql-server -y
# systemctl start mysqld
# sudo mysql_secure_installation
# sudo grep 'temporary password' /var/log/mysqld.log
Note: If MySQL 5.7 was installed, you will need the temporary password that was created during installation. This password is notated in the /var/log/mysql.log file and can be quickly found using the following command.
Root login
# mysql -u root -p
Output
mysql>
No comments:
Post a Comment