CentOS7 Install MySQL Notes
1 CentOS7 Install MARIADB database by default , uninstall MARIADB.
Rpm-qa|grep mariadb
Yum Remove mariadb-libs.x86_64
2 Configuring Yum Source
1) Download MySQL source installation package
wget Http://xiazai.jb51.net/201612/yuanma/mysql57YUM (jb51.net). rar
2) Install MySQL source
Yum Localinstall mysql57-community-release-el7-9.noarch.rpm
3) Check whether the MySQL source is installed successfully
Yum Repolist enabled | grep "Mysql.-community."
3 Installing MySQL
Yum Install Mysql-community-server
4 Start MySQL Service
1) Start
Systemctl Start mysqld
2) To view the startup status of MySQL
5 Boot up
Systemctl Enable Mysqld
Systemctl Daemon-reload
6 Modify root default password
1 after the MySQL installation is complete, a default password is generated for root in the/var/log/mysqld.log file.
Root default password found by grep ' temporary password '/var/log/mysqld.log:
2) Login MySQL
Mysql-uroot-p
Enter Password:
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.