1install MySQL server first download good mysql RPM installation package using RPM command installation: RPM-IVH mysql-server-5.1. the-1. glibc23.i386.rpm command Explanation: I:install V: Show Details H: Show progress bar issue: Display software Installation vs. native preinstalled MySQL conflicts: File/usr/share/mysql/romanian/errmsg.sys fromInstall of mysql-server-5.1. the-1. glibc23.i386 conflicts with File fromPackage mysql-libs-5.1. in-1. el6.i686 Solution:1first find out the package rpm-qa |grep MySQL (q:query a:all)2. Using RPM-e erases this package, but prompts the following dependency error to indicate that the other software relies on the package but can use brute force, remove dependency Delete: Use command: rpm-e mysql-libs-5.1.66-2.el6_3.i686--nodepsre-execute the install MySQL command: Install server successfully! Show that the server has been successfully started2. Install client Side Use command: RPM-IVH mysql-client-5.1. the-1. glibc23.i386.rpm3. Use the command to initialize the MySQL database (user name and password settings) to see the information that was alerted during the installation, mainly to tell us how to initialize the database: REMEMBER to SET A PASSWORD for the MySQL root USER! to DoSo, start the server and then issue the following commands:/usr/bin/mysqladmin-u root password 'New-Password '/usr/bin/mysqladmin-u root-h itcast01 Password 'New-Password ' Alternatively you can run:/usr/bin/Mysql_secure_installation Enter the following command to initialize MySQL:/usr/bin/mysql_secure_installation Follow the prompts to install: Enter Current password forRoot (enter forNone): Enter Set root password? [y/N] Input Y new password: Enter a new password Re-enterNewPassword: Lose the password again. Remove Anonymous Users? [y/N] Y Disallow root login remotely? [y/N] n Remove test database and access to it? [y/N] Y Reload privilege Tables now? [y/N] y4. Log in to MySQL using a client-uroot-p Enter password to login successfully!
Transferred from: http://blog.csdn.net/u014726937/article/details/52142048
rpm method to install MySQL in Centos7