Installing a standalone version of MySQL5.6.23 in a CentOS7 environment
Since MySQL needs to rely on Perl's package, install Perl using the following command first
1. Yum Install perl*
Installing Mysql-client
2. RPM-IVH mysql-client.rpm
Since Mysql-server needs to rely on Net-tools, install the net-tools using the following command first
3. Yum Install Net-tools
Because mysql-server conflicts with MARIADB, uninstall MARIADB using the following command:
4. Yum Erase mariadb*
Installing mysql-server.rpm
5. RPM-IVH mysql-server.rpm
See if MySQL is started
6./etc/init.d/mysql Status
If MySQL does not start, then use the following command to start
7./etc/init.d/mysql Start
View MySQL started those processes
8. Ps-a | grep MySQL
Since there is no new group MySQL with the user MySQL, so MySQL installation directly using the system's root user, during the installation process for the data
The root user of the library generates a default password that is saved in the. mysql_secure file
9. Cat. Mysql_secret
[Email protected]2catfor one: $ time): Dlzqfs4r9_ilyvue
Log in to MySQL
Ten. Mysql-u root-p
The password for the first login to MySQL is the password in the. mysql_secret file, and the password must be reset after successful login
One. Set password = password (' password ')
After setting the password, re-refresh the privileges for the password modification to take effect.
Flush Privileges
CentOS7 installing MySQL