Environmental information
------------------------------------------------------------
RHEL 6-x86_64
Yum (if Yum is not installed, please install Yum First, refer to : Installation and source configuration )
------------------------------------------------------------
Install MySQL
Yum Search MySQL
Yum Search MySQL
Search results are as follows
Mysql-python.x86_64 : an interface to mysqlapr-util-mysql.x86_64 : apr utility library mysql dbd driverbacula-director-mysql.x86_64 : bacula director with mysql database supportbacula-storage-mysql.x86_64 : mysql bacula storage daemon filesdovecot-mysql.x86_64 : mysql back end for dovecotfreeradius-mysql.x86_64 : MySQL support for Freeradiuslibdbi-dbd-mysql.x86_64 : mysql plugin for libdbimod_auth_mysql.x86_64 : basic authentication for the apache web server using a MySQL databasemysql.x86_64 : MySQL client programs and shared librariesmysql-bench.x86_64 : mysql benchmark scripts and datamysql-connector-java.noarch : official jdbc driver for mysqlmysql-connector-odbc.x86_64 : odbc driver for mysqlmysql-devel.i686 : files for development of mysql applicationsmysql-devel.x86_64 : Files for development of MySQL applicationsmysql-embedded.i686 : Mysql as an embeddable librarymysql-embedded.x86_64 : mysql as an embeddable librarymysql-embedded-devel.i686 : development files for mysql as an embeddable librarymysql-embedded-devel.x86_64 : development files for mysql as an embeddable librarymysql-libs.x86_64 : the shared libraries required for mysql clientsmysql-libs.i686 : the shared libraries required for mysql clientsmysql-server.x86_64 : the mysql server and related filesmysql-test.x86_64 : the test suite distributed with mysqlperl-dbd-mysql.x86_64 : a mysql interface for perlphp-mysql.x86_64 : A module for PHP applications that use MySQL DATABASESQT-MYSQL.I686 : MYSQL DRIVER FOR QT ' s sql classesqt-mysql.x86_64  : MYSQL DRIVER FOR QT ' s sql classesqt3-mysql.i686 : mysql Drivers for qt 3 ' s sql classesqt3-mysql.x86_64 : mysql drivers For qt 3 ' s sql classesrsyslog-mysql.x86_64 : mysql support for Rsyslog
Here we install mysql-server.x86_64, the process has asked whether to download, lost Y can, wait for the download to complete ....
Yum Install mysql-server.x86_64
The installation succeeds when you see the following words
installed: mysql-server.x86_64 0:5.1.73-3.el6_5 Dependency Installed: mysql.x86_64 0:5.1.73-3.el6_5 perl-dbd-mysql.x86_64 0:4.013-3.el6 perl-dbi.x86_64 0:1.609-4.el6 dependency updated: mysql-libs.x86_64 0:5.1.73-3.el6_5 openssl.x86_64 0:1.0.1e-16.el6_5.14 complete!
Check the MySQL status, which is not started by default (Mysqld is stopped)
/ETC/RC.D/INIT.D/MYSQLD status
start the MySQL test
/etc/rc.d/init.d/mysqld Startmysql
Show login success, you can hit a "show databases;", do not do a demo here, enter "Exit", quit MySQL
MYSQLD Service
View the MYSQLD service, which is all turned off by default
Chkconfig--list | grep MySQL
Shown below:
Mysqld 0:off1:off2:off3:off4:off5:off6:off
Open the Mysqld service
Chkconfig mysqld on
Check Again
Chkconfig--list | grep MySQL
shown below:
Mysqld 0:off1:off2:on3:on4:on5:on6:off
End of this article
This article is from the "Copper for Mirror" blog, please be sure to keep this source http://tangoo.blog.51cto.com/9130178/1532990