"Parametric environment"
1, Host os:win7 64bit
2, Vm:vmware 11.1.0
3, Client Os:centos 6
4. Version of OpenSSL installed in the system: openssl-1.0.0-27.el6.i686
5, the system has been installed in the Mysql-libs version: mysql-libs-5.1.66-2.el6_3.i686
6, MySQL under the Linuxos to prepare the installation package:
perl-dbi-1.609-4.el6.i686.rpm
perl-dbd-mysql-4.013-3.el6.i686.rpm
openssl-1.0.1e-16.el6_5.14.i686.rpm
mysql-5.1.73-3.el6_5.i686.rpm
mysql-server-5.1.73-3.el6_5.i686.rpm
mysql-libs-5.1.73-3.el6_5.i686.rpm
"Specific installation Steps"
1, installation perl-dbi-1.609-4.el6.i686.rpm
Command: # RPM-IVH perl-dbi-1.609-4.el6.i686.rpm
2, Installation perl-dbd-mysql-4.013-3.el6.i686.rpm
Command: # RPM-IVH perl-dbd-mysql-4.013-3.el6.i686.rpm
3, upgrade openssl-1.0.1e-16.el6_5.14.i686.rpm
Command: # RPM -Uvh openssl-1.0.1e-16.el6_5.14.i686.rpm
Note that the "RPM-ivh" command is used when installing this openssl and is prone to conflicting versioning issues. For a specific solution, refer to the "barrier reproduction"below.
4, upgrade mysql-libs-5.1.73-3.el6_5.i686.rpm
Command: # RPM -Uvh mysql-libs-5.1.73-3.el6_5.i686.rpm
5, Installation mysql-5.1.73-3.el6_5.i686.rpm
Command: # RPM–IVH mysql-5.1.73-3.el6_5.i686.rpm
6, Installation mysql-server-5.1.73-3.el6_5.i686.rpm
Command: # RPM–IVH mysql-server-5.1.73-3.el6_5.i686.rpm
7. Start the MySQL server under the Linux system
Command: # service mysqld Start
Is the first time you start the MySQL server, some information, this information is more important, to read carefully.
8, after installing the MySQL server, the first time to start the MySQL service to do some configuration:
(1) Set the password of the root user:
Command: #/usr/bin/mysqladmin-u root password ' new-password '
9. Log in to MySQL database
Command: # mysql–uroot–pxxx
10, if the user can correctly log on to the MySQL database, the MySQL database installation is successful.
===================================================
===================================================
"Barrier Reproduction"
A dependent version conflict was created when "OpenSSL" was installed.
[Email protected]_mysql mysql-fullpackage-rpm]# RPM-IVH openssl-1.0.1e-16.el6_5.14.i686.rpm
To be installed "openssl-1.0.1e-16.el6_5.14.i686.rpm" and the current OS system installed in the "openssl-1.0.0-27." el6.i686 "There is a conflict.
"Solutions"
Plan : upgrading OpenSSL in the system ( important )
① command: # rpm -UVH openssl-1.0.1e-16.el6_5.14.i686.rpm
② effect: This command will upgrade the "openssl-1.0.0-27.el6.i686" installed in the current system to "openssl-1.0.1e-16.el6_5.14.i686.rpm". Once the command has been executed, it is no longer necessary to install the "openssl-1.0.1e-16.el6_5.14.i686.rpm" Separately, since the system has been upgraded to "openssl-1.0.1e " on the original lower version. -16.el6_5.14.i686.rpm ".
Scenario : forcibly delete "openssl-1.0.0-27.el6.i686" in OS system.
However, this is not recommended in the actual situation.
If the reader wants to reprint, please indicate the source and the author's name, thank you.
Address:http://space.itpub.net/25851087
Address:Http://www.cnblogs.com/zjrodger
author Name:zjrodger
Installing the MySQL database under Linux