Install mysql and yumrpm in yum source, rpm, and source code in linux
Mysql Installation1. Install mysq in yum source formatL
1. Download the mysql yum source from the official website:
[Root @ localhost Downloads] #Wget http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm
[Root @ localhost Downloads] # ls
Mysql57-community-release-el6-7.noarch.rpm
2. List the files in the rpm package (view the files ):
[Root @ localhost Downloads] # rpm-QplMysql57-community-release-el6-7.noarch.rpm
Warning: mysql57-community-release-el6-7.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
/Etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
/Etc/yum. repos. d/mysql-community-source.repo
/Etc/yum. repos. d/mysql-community.repo
3. Install the rpm package (the yum source is automatically configured ):
[Root @ localhost Downloads] # rpm-IvhMysql57-community-release-el6-7.noarch.rpm
Warning: mysql57-community-release-el6-7.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ######################################## ### [100%]
1: mysql57-community-relea ####################################### #### [100%]
4. Install mysql:
[Root @ localhost Downloads] # yum install mysql
5. Start mysql:
[Root @ localhost mysql] #/etc/init. d/mysql start
Starting MySQL ...... [OK]
Ii. Install mysql using RPM:
1. Upload the downloaded file to Linux:
[Root @ localhost Downloads] # ls
MySQL-5.6.16-1.el6.x86_64.rpm-bundle.tar
2. decompress the tar file:
[Root @ localhost Downloads] # tar-xf MySQL-5.6.16-1.el6.x86_64.rpm-bundle.tar
[Root @ localhost Downloads] # ls
MySQL-client-5.6.16-1.el6.x86_64.rpm
MySQL-devel-5.6.16-1.el6.x86_64.rpm
MySQL-embedded-5.6.16-1.el6.x86_64.rpm
MySQL-server-5.6.16-1.el6.x86_64.rpm
MySQL-shared-5.6.16-1.el6.x86_64.rpm
MySQL-shared-compat-5.6.16-1.el6.x86_64.rpm
MySQL-test-5.6.16-1.el6.x86_64.rpm
3. Install the rpm file:
[Root @ localhost Downloads] # rpm-Uvh MySQL -*
Preparing... ######################################## ### [100%]
1: mySQL-devel ##################################### ###### [14%]
2: mySQL-client ##################################### ###### [29%]
3: mySQL-test ##################################### ###### [43%]
4: mySQL-embedded ##################################### ###### [57%]
5: mySQL-shared-compat ################################### ####### [1, 71%]
6: mySQL-shared ##################################### ###### [86%]
7: mySQL-server ##################################### ###### [100%]
4. Start the mysql service:
[Root @ localhost mysql] #/etc/init. d/mysql start
Starting MySQL ...... [OK]