CentOS 6.5 Universal binary installation MySQL 5.6

Source: Internet
Author: User

  1. MySQL download, go to MySQL official website now 5.6 binary version, such as:

    650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/85/65/wKioL1eikKWiILGgAAEtfJSbBbI438.png-wh_500x0-wm_3 -wmp_4-s_2990071814.png "title=" mysql download. png "alt=" wkiol1eikkwiilggaaetfjsbbbi438.png-wh_50 "/>

  2. Use WINSCP to upload to the system/usr/local directory, as

    650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/85/65/wKioL1eikOiR-nAPAAEP15szotY260.png-wh_500x0-wm_3 -wmp_4-s_2707272541.png "title=" WinSCP upload. png "alt=" wkiol1eikoir-napaaep15szoty260.png-wh_50 "/>

  3. Create MySQL users and groups, such as

    650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/85/66/wKiom1eikR7jO93WAAAfS1dhyyI481.png-wh_500x0-wm_3 -wmp_4-s_4253390371.png "title=" create MySQL users and groups. png "alt=" wkiom1eikr7jo93waaafs1dhyyi481.png-wh_50 "/>

  4. Go to the/usr/local directory and unzip the MySQL

    650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/85/65/wKioL1eikVuybW29AABWJgwqFws904.png-wh_500x0-wm_3 -wmp_4-s_3929285799.png "title=" decompression mysql.png "alt=" Wkiol1eikvuybw29aabwjgwqfws904.png-wh_50 "/>

  5. Rename the unpacked package or make a symbolic link, rename it here directly

    650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/85/66/wKiom1eikZnyDVrLAABZkz9aErs401.png-wh_500x0-wm_3 -wmp_4-s_1038232381.png "title=" renamed Mysql.png "alt=" Wkiom1eikznydvrlaabzkz9aers401.png-wh_50 "/>

  6. Change the owner and group of directories into the MySQL directory

    650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/85/65/wKioL1eikeax0-RzAADq0rgN67Y570.png-wh_500x0-wm_3 -wmp_4-s_1265675138.png "title=" Change the owner and group. png "alt=" wkiol1eikeax0-rzaadq0rgn67y570.png-wh_50 "/>

7. Turn on service startup

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/85/66/wKiom1eikjCw6HouAAArv10R4HQ467.png-wh_500x0-wm_3 -wmp_4-s_680739066.png "title=" to turn on service start. png "alt=" wkiom1eikjcw6houaaarv10r4hq467.png-wh_50 "/>

8.mysql initialization

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/85/65/wKioL1eiknLCtxQcAAAfd2Pd8ow894.png-wh_500x0-wm_3 -wmp_4-s_1777124484.png "title=" initialize. png "alt=" wkiol1eiknlctxqcaaafd2pd8ow894.png-wh_50 "/>

9. Copy the my.cnf in MySQL to/etc/my.cnf overlay paste according to the order of MySQL configuration files.

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/85/66/wKiom1eikufzOlhBAABzq17gVtE687.png-wh_500x0-wm_3 -wmp_4-s_4014612120.png "title=" CP my.cnf.png "alt=" Wkiom1eikufzolhbaabzq17gvte687.png-wh_50 "/>

10. Modify the configuration file my.cnf

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/85/66/wKioL1eikw2QaB0lAAB5h_6VChI937.png-wh_500x0-wm_3 -wmp_4-s_2593091472.png "title=" Modify the configuration file. png "alt=" wkiol1eikw2qab0laab5h_6vchi937.png-wh_50 "/>

11. Add the environment variable, add/usr/local/mysql/bin/mysql to the/usr/bin directory,

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/85/66/wKiom1eik2rTwCc1AABv40xEQik983.png-wh_500x0-wm_3 -wmp_4-s_115798900.png "title=" Add environment variable. png "alt=" wkiom1eik2rtwcc1aabv40xeqik983.png-wh_50 "/>

12. Start the MySQL service

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/85/66/wKiom1eilLiyjWCPAAAdFmpgrqg860.png-wh_500x0-wm_3 -wmp_4-s_3060318428.png "title=" Start Mysql.png "alt=" Wkiom1eilliyjwcpaaadfmpgrqg860.png-wh_50 "/>

13. Log in to MySQL

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/85/66/wKiom1eilPHDdoP2AABvqjwasEI562.png-wh_500x0-wm_3 -wmp_4-s_1799337642.png "title=" Landing mysql.png "alt=" Wkiom1eilphddop2aabvqjwasei562.png-wh_50 "/>

Installation is complete, the binary installation is relatively simple, the error is due to the authority problem is caused by more.

This article is from the "Jurchens" blog, make sure to keep this source http://6656395.blog.51cto.com/6646395/1834176

CentOS 6.5 Universal binary installation MySQL 5.6

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.