MySQL installation, for MySQL different version of the MySQL source code compilation method is not the same 5.6.2 version of the beginning of the compilation method has been changed from configure to CMake mode, the relevant new compilation method on the MySQL website has been provided HTTP// Dev.mysql.com/doc/refman/5.6/en/source-configuration-options.html source code is as follows http://dev.mysql.com/downloads/mysql/ Online related mysql5.6 Source code compilation method http://www.chenyudong.com/archives/building-mysql-5-6-from-source.html for MySQL before version 5.6, Compilation is also the traditional way of compiling:/configure make && make install this type of compilation is the traditional way, the specific configuration parameters such as Nginx below is MYSQL5.6 before the compilation configuration parameters (from the user data)-- Prefix=prefix: Specify the program installation path;--enable-assembler: Use assembly mode; (document Description: Compiling in x86 (and SPARC) versions of common string Operations, which should result in more performance. Assembly x86 common operator, can improve performance)--enable-local-infile: Enable support for the load DATA local infile syntax (not supported by default);--enable-profiling:build a version With query profiling code (req.community-features)--enable-thread-safe-client: Use the compile client; (Let the client Support thread meaning)-- With-big-tables: Enable 32-bit platform support for 4G large table;--with-charset=charset: Specify character set;--with-collation=: Default collation ;--with-extra-charsets=charset,charset,... : Specify additional character sets;--with-fast-mutexes:compile with fast muteXES--WITH-READLINE:--WITH-SSL: Enable SSL support;--with-server-suffix=: Add string to version information ;--with-embedded-server: Compile Embedded-server, build the embedded MySQL library,--with-pthread: Force the use of Pthread class library;--with-mysqld-user= : Specify the user of the mysqld daemon;--with-mysqld-ldflags=: Statically compile MySQL server side; (static link improves 13% performance)--with-client-ldflags=: statically compile MySQL Client ; (static link improves 13% performance)--with-plugins=plugin,plugin and so on (MySQL server-side supported storage Engine components (default is empty), more optional values: Partition:mysql partitioning Support;daemon_example:this is an example plugin daemon;ftexample:simple full-text parser plugin;archive:archive Storage engine;blackhole:basic write-only read-never tables;csv:stores tables in text CSV format, forced installation; example:example For Storage Engines for developers;federated:connects to tables on remote MySQL servers;heap:volatile memory based tables, Mandatory installation; IBMDB2I:IBM DB2 for i Storage engine;innobase:transactional Tables using innodb;innodb_plugin:transactional Tables Using innodb;myisam:traditional non-transactional mysql tables, forced installation; myisammrg:merge multiple MySQL tables into one, forced installation ; Ndbcluster:high Availability Clustered tables;)--with-plugin-plugin: Force the specified plugin to link to the MySQL server;--with-zlib-dir=: Provide MySQL with a custom compression class library address ;--without-server: Install only the MySQL client;--without-query-cache: Do not compile the query cache;--without-geometry: do not compile the geometry-related section ;--without-debug: Compile to product version, discard debugging code;--without-ndb-debug: Disable special NDB debug feature; Based on the above, my configuration:./configure--prefix=/ usr/local/mysql/--with-server-suffix=yu--enable-assembler--enable-local-infile--enable-thread-safe-client-- With-big-tables--with-charset=utf8--with-extra-charsets=gbk,gb2312,utf8,ascii--with-readline--with-ssl-- With-embedded-server--with-pthread--with-mysqld-user=mysql--with-mysqld-ldflags=-all-static-- With-client-ldflags=-all-static--with-plugins=partition,innobase,innodb_plugin
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Changes to MySQL source code compilation