CentOS 6.5 yum Install MySQL 5.6

Source: Internet
Author: User
Tags gnupg gpg

CentOS 6.5 yum install MySQL 5.6NILYANG
    • Posted 1 years ago
    • Read 14339
    • Favorites 7
    • 4 Likes
    • Reviews 1

Google, Github dual authentication front End course, exclusive Silicon Valley content, weekly live tutoring, limited time registration >>>

Summary: Recently switched to a long time without the CentOS also slightly do not adapt, the default Yum can only install MySQL 5.1, need to upgrade and do not want to compile. So this is the article.

Recently switched to a long time without the CentOS also slightly do not adapt, the default Yum can only install MySQL 5.1, need to upgrade and do not want to compile. So this is the article.

Specific document Address:

1. http://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html

2. http://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/

Here is the part I took to complete the process of installing MySQL 5.6

1. Check the system for MySQL repo

# yum repolist all | grep mysql#

2. If not found, you need to configure the repo

Note that if you want to use 5.7 or any other version, only one is enabled=1 , and the others are enabled=0.

#vim /etc/yum.repos.d/mysql-community.repo# Enable to use MySQL 5.6[mysql56-community]name=MySQL 5.6 Community Serverbaseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/6/$basearch/enabled=1gpgcheck=1gpgkey=

3. See if there is a MySQL repo

# yum repolist enabled | grep mysqlmysql56-community     MySQL 5.6 Community Server                             214

OK, the instructions already have, the following can be installed mysql5.6

4. Note that

Might take it for granted that

# yum install mysql56//你只会得到No package mysql56 available

In fact, the official installation command is

#YumInstallMysql-community-serverBut it failed.Mysql-community-server-5.6.28-2. el6. x86_64. rpm |53MB00: 10WarningRpmts_hdrfromfdno:HeaderV3dsa/sha1 signature, key id 5072E1F5:  nokeyretrieving key from file:< Span class= "hljs-comment" >///etc/pki/rpm-gpg/rpm-gpg-key-mysql get  GPG  Key failed: [errno 14] Could not open/read  file:///etc/pki/rpm-gpg/rpm-gpg-key-mysql  

5. Failure is a successful mother

From the error to see: Need to verify the GnuPG signature, fortunately can be manually, Chairman Mao said, his hands clothed well.

Of course, there is another move, we do not need:

http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-server-5.6.28-2.el6.x86_64.rpm

We're going to do the wrong thing, and we'll get the signature first. Reference Address: http://dev.mysql.com/doc/refman/5.6/en/checking-gpg-signature.html

# Vim/etc/pki/rpm-gpg/rpm-gpg-key-mysql writes the following-----BEGIN pgp public key block-----version: gnupg v1.4.9  (SunOS) mQGiBD4+ Owwrbac14gifufcyedsiepvew3safudjbtoqhh/njkzyqt7h9bpluwc3rodjqreycitrrdwyrkugku2fmevgwn2u2wmdmnablnpprwpkbdck96 +omsln9brzfw2vougcmyv2hw0hydhuvylqa/bthqoadgj8aw6/0lo7v1w9/8vuhp0gqwcgvzv3bqoxrznncrcrxauauvzthrceajooqk1+ isiunzmyd1wufexfshc57s/+yejkegnwhxwr9prwvarnyjddrt+rf2rue3vpquknqu/ hneiuhjrqqyho8gtxvxxnqc7fjylvk2htkrpbp72vwsekmyhhr0ekcbtlgfls9krjj6sbgacyp/ vb7hipwxh6rdz7itnekypxbacmwpp8njtkamenpcia2zoohodanwpukp43i7jsdmgtobzx9qnraxw+ undiqjexm6fsbi0lltzcinlysafwapeomdkpmqak6iyisntpvald8lh0bpanwqcyefeprv0sxxquemcm3o7wwgfn83pokdasdbs3pjwphxvhz6/ /62zqj7q2txltuuwgumvszwfzzsbfbmdpbmvlcmluzya8bxlzcwwtynvpbgrab3nzlm9yywnszs5jb20+ igkeexecackcgymgcwkibwmcbbuccamefgidaqieaqixgaizaqucuwhuzgujgmblywakcrcmcy07uhlh9v+dakcjs1ggwgvi/eut+5l+ l2v3ybl+ Zgccd7zoa341htorov3u6xrd09fugeq0o015u1fmifbhy2thz2ugc2lnbmluzybrzxkgkhd3dy5texnxbc5jb20pidxidwlszebtexnxbc5jb20 +ig8embecac8fak53pa0ohsbidwlszebtexnxbc5jb20gd2lsbcbzdg9wihdvcmtpbmcgc29vbgakcrcmcy07uhlh9bu9aj9xdk0oxjfl9vtl9oszc4lx0k9azwcccrs9cnjyz79earjl0s2r/ Ccljdyizqqteqiahqucr6yutaujdtbyqaulbwodbamvawidfgibaheaabijeixxjttqcuh1b2vhuecaaqgukgcffz4guejzxkoi71vcwgcxastgbe0an34lpr 1j9fcbrxwxo14msiadfb5pieweexecaawfaj4+o9efgwlmalsacgkqsvdhkrjykfik4qcfwbeekn+3trspe+5xkj+ Kqjsammianjuz0xfwplvx0f8o38qng1bq0cu9ieweexecaawfaj5cggmfgwliiokacgkqtvxntca6jd+ wkqcgigmnogjmojynp5ppvmxkyukfnykaok79e6h8rwksdzouiz7nmrish8uyieyeebecaayfaj+s468acgkqr8ujshidda/ 2lgcg21ihimmabtydp/ibiusp/jqlieoanrzmywetujqz/e9ono7h1dkebda4ieyeebecaayfaj+ 0q3cacgkqhzavqzbztmbgwwcdfqd1frvic7wrt8gkoos7hznn32kanirlbwpnt7a6nosq83nk11a2dephieyeebecaayfaknbs+ oacgkqi9gubzc5s1x/ dacdelkoxqkkwjn0gzztsm7kjsigyfmanrrmbhq7v39xc90oipapjk3a01tgieyeexecaayfaktxmyyacgkq9kne9gctuwwkcqcgibak/ swhxwh1ijrhgyco5gtm4vcanahtzl57wcw1kg1xm7nvgetuqj7fieweebecaawfakgbywefgwyi2ysacgkqgfnqh2d7oexcjqccd8sjndc/ ms8m8ogduox9vmwcngkanj1ywod+qhxo3mi/ul9oeahnkjcfieweebecaawfakgbyzqfgwyi2vgacgkqgcl36+ ittpiiiwcdfvnvub8xe8mfxopm4d9z54ptjpmanispa/ zsfj3oomlkar4f0qpprdrgieweebecaawfakgby2ifgwyi2soacgkqa3ds2v3d9hmjqgcbbyzr5gpxoxgp88jkzmdbjweqxeeanrss4g2g/ 3qd7uhtl1spt1shjwuxieweebecaawfakhqkyqfgwxuewgacgkqfsxkcsepp8jivqcghvwvkpqowsw8w7wssetcw1tflvkani+vlhl/ Dqily0lkzyn5jzk1dpvfieweebecaawfakirw7ofgwv5sniacgkq5hukirxruavzewcgkzl5qklsypcw9lghcfsx1ya0vl4an35nxkumg6ccj1np8r2i4nczw Irqieweehecaawfakaqwtofgwd6s1iacgkqpkefnjt6+gemxaccd+ a53a5ogm7w750w11ukq4iz9ckanrmvndaqn3ytoxxllpj2upzisgsqieweehecaawfaka9+rofgwdmqdiacgkq8tdcy+ oczzyy3wcgtdcwlaq20w0cnuxfllneeuafftwani6rhn80mosvaddtrkzzacju3m5qieweehecaawfakeocoqfgwawmggacgkqocor9d1qil/ 83qceitz9wio7xamjc6y4zwul4m+edzsaomohriri42fmrnfuvnzbnmgej81vieweehecaawfakkaptqfgwuj/ 1gacgkqba3ahxydn6jjjaccd1a4utxk84j13jqyoh9+dy24714aniwlsso/ 9ndicjokqs2j5dlhfq6oieweexecaawfaj5ntyqfgwlxvwgacgkqlbt2v63uytmfdacglt5g5nvkf5mj65bfslpzb92zk2qan1uc2h19/ iwwrsbiyk/9poj+jmp7ieweexecaawfakhxghyfgwxnjbyacgkqzu/bym2c/t4/vacfxe67xishb80wkmfz2krb+oz/ Gbaanjr2ucpbaonkqqgnc3gnbqmcvnajieweexecaawfakiygq4fgwwmi34acgkqdsedhkixbqgg7gcfqi2hcrhn+ Ylfunlh1osoh48zm0oan3hkv0uirjphonhauyiup1ttwgdbigueexecab0fcwckawqdfqmcaxycaqixgaucs3avygujeppzpwasb2vhuecaaqejeixxjttqcu h1snsaniypybgqy/ Hhmnw3we8kxahoor5kaj4xumwpgyp4l3hkxynk9oaubpdvyih7bdaraga7bqjcdzx1nb0at29wcy4ulibzag91bgqgagf2zsbizwvuigxvy2fsisbjj20gknn vkibzdhvwawquli4acgkqocor9d1qil/ Vrwcdfo08f66okliueaqzlf9idlpozeean2egvcylcchjfgosrkru3wk5nfvgii8embecae8fakvval9ihqbtag91bgqgagf2zsbizwvuigegbg9jywwgc2ln bmf0dxjllcbvcibzb21ldghpbmcglsbxveygd2fziekgdghpbmtpbmc/aaojednkk/ q9aopfopsan3bvqkoaljef0xpsvlr90psrlnmgaj44oisy7tl3njbpgzal8w32fbqgbikcigqqaqiadaucqyhlhqwdbilzbwakcrcq4+ Bozqfeakgveaccernahgyuya0wetjj6dlexsqeoixad4i9abqxnd35gugcfofc/ncy4xcncmmenmdq9ofuuu3obj6bnjibeusaabglooebp/3keaiciiyhhyu5jarpzah+ zopgs3oc11mq1tias69ijxrgtlodkasajaeeuwtpq9fhffzc1egbysoyfwg4bijz/zcli+qytbfa5g6troixto8ko7qhy2aa5ugeg+ 83hdb6akc04z2qrerxkaqrphhzj8xpjvosqadai/qvkqenkrolj+iq6+ yesmcwgfzeb87dgnwevfdjiga0qy27ptb2lexyjsrfn4cb13nfodabmtoxcawz7japcxaplhug++ mhmrhqxetoznbfe4nbnc7vobngwdjugxcpkuckop4b17bfpr+k8ztylss8p2llz4uaeccsm2/msjxt7rc/fvoh8428ohincqs2ico9zo/ Ud4hmmo0o+sszdvkiijingyovwb4oozkalnnhez3o6hahcreisbgpweyvtj/9zdc0ao44nj9cu7awaqgtrnwwfr/o4v2gl8blskltzu27/29heuoefgjlfe0yrdd/arnsxbyb2o28h4sg1cvzmc5uk1iqbdisya7q0bbdofcwoqzm5twlpkwny8oe0ub9xp5p/svfck4fcewfhwv+/ pc9rzsl33lq6vm2wikcigqtaqiadaucqp8khawdbqwacaakcrdywgojwirxzye+d/9uc7z6fisalfoyoln60ajabqbi/ urkbfugyz5roaitusn9z2ratn61wrfhu4ucsjtfn1ny2rerg40f56ptghkrd+yet+nze6+fkq5abgidfsr/2buk+zzrst83e14lcb6ii/ fjfzkoiox9ltkifqxqy7tvk4noku4olsc8o1wsfc/y0b9syuucmufcnq58demgie9ovuslmyt5npnvexxp5uearc5rqt9tk2b4a+7/ cqenrdzjbamsunt2+2fkyirunafpkpbdjbsy1sxel/a9ake0vikexqdawqdnzknci8rd/oop99/ 9lmbfudabx6nl2dsb1og2z7nweqgiazjmpwyypckevz5q8r+if9/fe5+sty/55oai33fj2h3v+ u435vjyqbrerwe36xjitcjequzw71fqtxi1ctel3w2ch7vf5oj/qyjablnalhgslksi6p7by5c2mnbchlcfpniinphforcrgpjje9nfwgs+ qblvs/chzc2wx3s/2swm4geukrx4zsaj5ocyfa/vkxcksxk/erwlcpf/j1t70+i5waxdn/e3enset/wl7h94pqkpjz8odgl4jsbhuavga+a+ dknqnpf0kmklhjrgv+l7o84fhbmap7pxm3xmimprixf+el5fzzequqoiagf8rdrhhhrjxqgi0hnknkaoqs8dtrkcdqq+pqmdeaga7+ gjfxbmdy4wslpnjh9rf4n2qfwsen/lxazojyc3a6m02wcnhl6aht2/ Tbk2w1qi4yfter47gcvtgb6o1jhffoo2hflmrdrirjd1dtchqeyx7chhcghj/dnrlw2z0l5qfecmv9u0vhp3affwc4ujfs3lu+hkawze7zad5ch9j7yv/6xuzvw411x0h4uqstcwmu0im1bzelqx1dy7lwopeb/ o9rkbf4fmle11eziaca4pqarxqzc4dhsinmt6k3x4brrsktfozbu74f47d8ilbf5vsyhbue5p/1oidznkg/p8kw+ 3fxuwrycciqftcnz215yyx39lxfnllzkub/f5gwadbqf+ lwqqa8cgrrfsoajxim63chfty5muc5rusntslgyeiocr1beqauypzbpdsdd9mz1zasafanfvwfg6llx9xku7tzq+ Vklowkm4u5xf3vn55vjnsd1aq9eqnucxil4cnbgotbowi39ecyzgslzbdc++ mpjcqtca7p6juvsp6oab3fqwg54tuuo0ec8bsm8b3ev42lmuqt5ndkhgwhsxtptl0klk4bqk4oajhsiy1bmahpt27jwjjlmijc+ iwj0mghkkht926s/ ymfdf5hkdq1cyvsz5tryvi3fx78xesyfqvuuwqp2h139pxgekg0n6kduoetdzwhe70ygnpw1yjwjt1ihubbgragambqjodz3tbqkt+ wg4abihzudqrwabaqkqjhgno1by4fuumwcbbyr2+bben/l2bocnw9z/qfwuhrmaokvgcfm5fadq3afi+uqlacophrnj=443 i-----END PGP public KEY BLOCK-----    

OK, it seems ok. Let's do it again, hey.

# yum install mysql-community-server

After a series of y/n choices, the progress bar arrives at the finish line beautifully.

So far, MySQL 5.6 has been successfully installed from Yum:-)

Start the service and embark on a new journey.

CentOS 6.5 yum Install MySQL 5.6

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.