MySQL compilation installation

Source: Internet
Author: User

CMake \
-dcmake_install_prefix=/data/mysql \ #The Installation base directory.
-dmysql_datadir=/data/mysql/data \ #The Location of the MySQL Data directory.
-dsysconfdir=/data/mysql \ #The Default my.cnf option file directory.
-dwith_myisam_storage_engine=1 \ #支持MyIASM引擎
-dwith_innobase_storage_engine=1 \ #支持InnoDB引擎
-dwith_memory_storage_engine=1 \ #支持Memory引擎
-dwith_readline=1 \ #快捷键功能 (I didn't use it)
-dmysql_unix_addr=/data/mysql/mysql.sock \ #连接数据库socket路径
-dmysql_tcp_port=3306 \
-denabled_local_infile=1 \ #允许从本地导入数据
-dwith_partition_storage_engine=1 \ #安装支持数据库分区
-dextra_charsets=all \ #安装所有的字符集
-ddefault_charset=utf8 \
-ddefault_collation=utf8_general_ci

Make && make install

MySQL Compilation installation

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.