MySQL source package compilation and installation

Source: Internet
Author: User

1. Install dependent packages

Yum-y Install Ncurses-devel Libaio-devel

2, download CMake package, unzip, compile

Wget-q https://cmake.org/files/v2.8/cmake-2.8.8.tar.gz TAR-XVF cmake-2.8.8.tar.gzcd cmake-2.8.8./configure

Compile error is generally because there is no installation gcc-c++

Yum-y Install gcc-c++
Gmake && gmake Install

3. Download mysql-5.5.58.tar.gz

TAR-XVF MYSQL-5.5.58.TAR.GZCD mysql-5.5.58
CMake. -dcmake_install_prefix=/application/mysql-5.5.58-dmysql_datadir=/application/mysql-5.5.58/data-dmysql_unix_ Addr=/application/mysql-5.5.58/tmp/mysql.sock-ddefault_charset=utf8-ddefault_collation=utf8_general_ci-dextra_ Charests=gbk,gb2313,utf8,ascii-denabled_local_infile=on-dwith_innobase_storage_engine=1-dwith_federated_ Storage_engine=1-dwith_blackhole_storage_engine=1-dwithout_example_storage_engine=1-dwithout_partition_storage _engine=1-dwith_fast_mutexes=1-dwith_zlib=bundled-denabled_local_infile=1-dwith_readline=1-dwth_embedded_ Server=1-dwith_debug=0
Make && make install


MySQL source package compilation and installation

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.