Install mysql and yumrpm in yum source, rpm, and source code in linux

Source: Internet
Author: User
Tags gpg localhost mysql

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]

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.