Install the MySQL database using the Yum command and the environment is a 64-bit centos6.4 system.
1, check whether the system comes with MySQL installed, execute command: Yum list installed | grep MySQL
2. If installed, uninstall, use command: yum-y remove mysql-libs.x86_64
3. View MySQL version information on the Yum Library, command: Yum list | grep MySQL or yum-y list mysql*
4. Install the MySQL database using yum, using the command: yum-y install mysql-server MySQL mysql-devel
5. View MySQL version information, command: Rpm-qi mysql-server
6, start the MySQL, execute command: Service mysqld start, if need to boot to execute command: chkconfig mysqld on
7, the Database Security Configuration Wizard, execute the command: mysql_secure_installation, follow the prompts step-by-step operation on the line.
8, login mysql, login password in the security configuration settings, execute command: mysql-uroot-p
Yum command to install MySQL