The process of installing MySQL Community edition 5.6.37

Source: Internet
Author: User

There are many ways to install MySQL, but I like Yum best because it's simple and no brains.


So first #rpm-UVH http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm, then #yum install Mysql-community-server, for installation, the version of this installation is 5.6 Community Edition.


After installation, it is found that #service mysqld start cannot be started,

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/05/A8/wKiom1mo_VDT1ZhEAABqlAHqjyE550.png "title=" 1.png "alt=" Wkiom1mo_vdt1zheaabqlahqjye550.png "/>


This time to check the MySQL error log,#less/var/log/mysqld.log, found that there are such words:

[error] innodb: auto-extending data file ./ibdata1 is of a  different size 640 pages  (ROUNDED DOWN TO MB)  than specified  in the .cnf file: initial 768 pages, max 0  (relevant  If non-zero)  pages!2017-09-01 14:26:55 29830 [error] innodb: could not  open or create the system tablespace. If you tried to  Add new data files to the system tablespace, and it failed  here, you should now edit innodb_data_file_path in my.cnf back  to what it was, and remove the new ibdata files innodb  created in this failed attempt. InnoDB only wrote those  files full of Zeros, but did not yet use them in any way. but be  careful: do not remove old data files which contain your  precious data!2017-09-01 14:26:55 29830 [ERROR] Plugin  ' InnoDB '  init  function returned error.2017-09-01 14:26:55 29830 [ERROR] Plugin  ' InnoDB '  registration as a STORAGE ENGINE failed.2017-09-01 14:26:55  29830 [error] unknown/unsupported storage engine: innodb2017-09-01 14:26:55  29830 [error] aborting


The reason for this error is that the MySQL5.5.8 GA default engine is InnoDB, and the configuration file (MY.CNF) is set to Skip-innodb, there are two ways to encounter this problem, one is in the my.cnf content changed to this:

#loose-skip-innodb default-storage-engine = MyISAM


There is another way to be cruel, is #rm-rf/var/lib/mysql/ib*, Ibdata1, IB_LOGFILE0, ib_logfile1 files removed, and then re- #service mysqld Start a bit,

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/05/A8/wKiom1mo_xqASEmXAAAh2RlT1O0800.png "title=" 1.png "alt=" Wkiom1mo_xqasemxaaah2rlt1o0800.png "/>


After you start, you need to #mysql_upgrade ,

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/A4/59/wKioL1mo_07Rfl1ZAADwXYgq0Wc164.png "title=" 1.png "alt=" Wkiol1mo_07rfl1zaadwxygq0wc164.png "/>


Then #mysql_secure_installation, enter the new password for root, and then in the "Remove anonymous users?" [y/n] "This step selects Y, which means to kill all anonymous users.


When all is done,#chkconfig mysqldon, set the boot automatically to start MySQL:

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/05/A8/wKiom1mpAAHDGPFjAAAqzyaNCO0569.png "title=" 1.png "alt=" Wkiom1mpaahdgpfjaaaqzyanco0569.png "/>



#mysql-V to see if the version is 5.6, so the entire MySQL 5.6 installation is complete, enjoy it.


Finally, if you feel this article is helpful for your promotion, please do not hesitate to sponsor the hand, brush the following QR code, sponsorship I continue to write more blog posts!

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9C/C8/wKioL1l16m3BMYDKAACPHEqd55Q687.jpg "title=" Webwxgetmsgimg.jpg "alt=" wkiol1l16m3bmydkaacpheqd55q687.jpg "style=" padding:0px;margin:0px;vertical-align:top; Border:none; "/>


This article is from "Life is waiting for Gordo" blog, please make sure to keep this source http://chenx1242.blog.51cto.com/10430133/1961930

Procedures for installing MySQL Community edition 5.6.37

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.