1, first download the MySQL installation files, I installed here is the MySQL5.1.7 version,
Download Link: http://pan.baidu.com/share/link?shareid=255483056&uk=924063144
http://pan.baidu.com/share/link?shareid=269901909&uk=924063144
2. Install MySQL database server
Go to the folder where the installation package is located, execute the command rpm-ivh mysql-server-5.1.7-0.i386.rpm install the MySQL server.
If the reported conflict with the original version, the execution of the rpm-qa|grep-i MySQL command, will show the installed MySQL version, my display mysql-libs-5.1.61-4.el6.i686
At this point, if there is a forced deletion: Rpm-e--nodeps mysql-libs-5.1.61-4.el6.i686 (because there is a packet dependency, so to forcibly delete)
My error message is as follows:
mysql-server-5.1.7-0. i386.rpm Preparing ... ########################################### [100%] File/usr/share/mysql/charsets/readme from install of mysql-server-5.1.7-0.i386.rpm conflicts with file fromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/index.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file F RomPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/armscii8.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/ascii.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/cp1250.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/cp1251.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/cp1256.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/cp1257.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/cp850.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/cp852.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/cp866.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/dec8.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file fromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/geostd8.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/greek.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/hebrew.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/hp8.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file fromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/keybcs2.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/koi8r.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/koi8u.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/latin1.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/latin2.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/latin5.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/latin7.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/macce.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/macroman.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 file/usr/share/mysql/charsets/swe7.xml from install of mysql-server-5.1.7-0.i386.rpm conflicts with file fromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/czech/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file fromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/danish/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file fromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/dutch/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file fromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/english/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/estonian/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/french/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file fromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/german/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file fromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/greek/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file fromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/hungarian/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/italian/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/japanese/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/korean/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file fromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with File fromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/norwegian/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/polish/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file fromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/portuguese/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/romanian/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/russian/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file FromPackage Mysql-libs-5.1.61-4. el6.i686 File/usr/share/mysql/serbian/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file Frompackage mysql-libs-5.1.61-4.el6.i686 file/usr/share/ Mysql/slovak/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file from package mysql-libs-5.1.61-4.el6.i686 File/usr/share/mysql/spanish/errmsg.sys from Install of mysql-server-5.1.7-0.i386.rpm conflicts with file from package Mysql-libs-5.1.61-4.el6.i686 File/usr/share/mysql/swedish/errmsg.sys from Install of mysql-server-5.1.7-0.i386.rpm conflicts with file from package mysql-libs-5.1.61-4< Span style= "color: #000000;" >.el6.i686 File/usr/share/mysql/ukrainian/errmsg.sys from install of mysql-server-5.1.7-0.i386.rpm conflicts with file From package mysql-libs-5.1.61-4.el6.i686
This is the time to perform RPM-IVH mysql-server-5.1.7-0.i386.rpm installation to install successfully.
I installed the success here, but the MySQL service can not start, always start failure, and then Baidu a bit, because of the reasons for SELinux, as long as the selinux off will be OK.
Turn off Selinux:vi/etc/selinux/config change selinux=enforcing to selinux=disabled and restart
The MySQL service cannot be started after SELinux is turned off, because the MySQL owner installed is root and a user MySQL will be created when MySQL is installed, as long as the/var/lib/mysql
The owner changes to MySQL is OK, execute the command chown-r mysql:mysql/var/lib/mysql
Now execute service MySQL start to start the MySQL service finally.
3. Install the MySQL client
Execute the command RPM-IVH mysql-client-5.1.7-0.i386.rpm to install.
4. Successful Installation
After successfully installing MySQL, import the SQL file into the database, as follows:
Enter MySQL Command line Client
1. Create DATABASE First: "CREATE DATABASE" Test Note: test is the name
2. Then switch to the current database: Use test
3, re-enter: \. /root/test.sql or Souce/root/test.sql
Follow the above steps to import the backed up SQL script into a database in Linux.
Installing MySQL database in CentOS