First, the tool download
MySQL Download portal
Securecrtsecurefx Download Portal
Second, upload the installation files
Third, view the uploaded MySQL installation files
[Email protected] ~]# lsanaconda-ks.cfg mysql-client-advanced-5.6. 1. el7.x86_64.rpm mysql-server-advanced-5.6. 1. el7.x86_64.rpm public template video picture document download music Desktop
Iv. Installation of Perl
[Email protected] ~]yum install-y Perl-module-install.noarch
V. Installation of Libaio
[Email protected] ~]yum install-y Libaio libaio-devel
Vi. Modifying the SELinux cfg
[Email protected] ~]vi/etc/selinux/config
Modified (can be modified by pressing the I key) selinux=enforcing to Selinux=disabled, save (press ESC to enter: Wq after return)
Seven, restart the system
[Email protected] ~]reboot
Viii. Installing the server
[Email protected] ~]RPM-IVH mysql-server-advanced-5.6. 1. el7.x86_64.rpm
Nine, install the client
[Email protected] ~]RPM-IVH mysql-client-advanced-5.6. 1. el7.x86_64.rpm
Ten, start MySQL
[[Email protected] ~]# service mysql startstarting mysql SUCCESS
Xi. Setting the root password
[[Email protected] ~]# service MySQL stop [[email protected]~]# mysqld_safe--user=mysql--skip-grant-tables--skip-networking &[[Email protected]~]# MySQL-u root mysql mysql> UPDATE User SET Password=password ('123')whereUser='Root'; MySQL>FLUSH privileges; MySQL>quit [[email protected]~]# service MySQL start[[email protected]~]# Mysql-u Root-p Enter Password:123
12. Start MySQL times wrong
error! MySQL server PID file could not being found!
Kill all out of the process and start MySQL.
[[Email protected] ~]# PS aux |grep mysq*
Root 19162 0.0 0.0 113252-PTS/1 S 09:24 0:00/bin/sh/usr/bin/mysqld_safe--user=mysql--skip-grant-t Ables--skip-networking
MySQL 19280 0.1 5.7 1038812 456172 pts/1 Sl 09:24 0:03/usr/sbin/mysqld--basedir=/usr--datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin--user=mysql--skip-grant-tables--skip-networking--log-error=/var/lib/mysql /localhost.err--pid-file=/var/lib/mysql/localhost.pid
Root 19678 0.0 0.0 112656 980 PTS/1 s+ 09:55 0:00 grep--color=auto mysq*
[[email protected] ~]# kill 19162
[[email protected] ~]# kill 19280
[email protected] ~]# kill 19678
[Linux]centos7 under MySQL mini-installation tutorial