|
Simple to explain the process of installing MySQL 5.6.15 under Linux, we hope to be useful.
1. Download MySQL 5.6
Download page: http://dev.mysql.com/downloads/mysql/
Here, select the "Red Hat Enterprise Linux 6 / Oracle Linux 6 (x86, 32-bit), RPM Bundle" download, download to / root / Downloads / directory, download the file name "MySQL-5.6.15-1.el6 .i686.rpm-bundle.tar "
2. Unzip the tar package
Cd / root / Downloads /
Tar -xvf MySQL-5.6.15-1.el6.i686.rpm-bundle.tar
3. Install MySQL as RPM
In the RHEL system, you must first install the "MySQL-shared-compat-5.6.15-1.el6.i686.rpm" this compatibility package, and then to install the server and client, or installation error.
Yum install MySQL-shared-compat-5.6.15-1.el6.i686.rpm # RHEL compatible packages
Yum install MySQL-server-5.6.15-1.el6.i686.rpm # MySQL server program
Yum install MySQL-client-5.6.15-1.el6.i686.rpm # The MySQL client program
Yum install MySQL-devel-5.6.15-1.el6.i686.rpm # MySQL library and header files
Yum install MySQL-shared-5.6.15-1.el6.i686.rpm # The shared library for MySQL
4. Configure the MySQL login password
Cat /root/.mysql_secret # Get the random password generated when MySQL is installed
Service mysql start # Start the MySQL service
Mysql -uroot-p # into MySQL, before using the random password
SET PASSWORD FOR 'root' @ 'localhost' = PASSWORD ( 'password'); # In the MySQL command line to set the root account password password
Quit # Exit the MySQL command line
Service mysql restart # Restart the MySQL service |
|
|
|