Mysql的安装,对于mysql不同版本号的mysql源代码编译方式不一样  

5.6.2的版本号開始编译方式已经由 configure 变成了cmake方式 ,相关的新的
编译方式在mysql官网已经提供
http://dev.mysql.com/doc/refman/5.6/en/source-configuration-options.html
源代码下载地址例如以下
http://dev.mysql.com/downloads/mysql/
网上相关mysql5.6的源代码编译方式
http://www.chenyudong.com/archives/building-mysql-5-6-from-source.html 对于版本号5.6之前的mysql,编译方式还是传统的编译方式。
./configure
make && make install
此种编译方式是传统方式,详细配置參数 如 nginx 例如以下 以下是MYSQL5.6之前的编译配置參数(来自网友资料)
--prefix=PREFIX:指定程序安装路径。
--enable-assembler:使用汇编模式。(文档说明:compiling in x86 (and sparc) versions of common string operations, which should result in more performance. 汇编x86的普通操作符。能够提高性能)
--enable-local-infile:启用对LOAD DATA LOCAL INFILE语法的支持(默认不支持)。
--enable-profiling:Build a version with query profiling code (req.community-features)
--enable-thread-safe-client:使用编译客户端;(让客户端支持线程的意思)
--with-big-tables:启用32位平台对4G大表的支持;
--with-charset=CHARSET:指定字符集。
--with-collation=:默认collation;
--with-extra-charsets=CHARSET,CHARSET,...:指定附加的字符集;
--with-fast-mutexes:Compile with fast mutexes
--with-readline:
--with-ssl:启用SSL的支持;
--with-server-suffix=:加入字符串到版本号信息。
--with-embedded-server:编译embedded-server。构建嵌入式MySQL库;
--with-pthread:强制使用pthread类库;
--with-mysqld-user=:指定mysqld守护进程的用户。
--with-mysqld-ldflags=:静态编译MySQL服务器端。(静态链接提高13%性能)
--with-client-ldflags=:静态编译MySQL客户端。(静态链接提高13%性能)
--with-plugins=PLUGIN,PLUGIN 等等等(MySQL服务器端支持的存储引擎组件(默觉得空)。可选值较多:
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,强制安装。
example:Example for Storage Engines for developers。
federated:Connects to tables on remote MySQL servers;
heap:Volatile memory based tables。强制安装;
ibmdb2i:IBM DB2 for i Storage Engine;
innobase:Transactional Tables using InnoDB。
innodb_plugin:Transactional Tables using InnoDB。
myisam:Traditional non-transactional MySQL tables,强制安装;
myisammrg:Merge multiple MySQL tables into one,强制安装;
ndbcluster:High Availability Clustered tables。)
--with-plugin-PLUGIN:强制指定的插件链接至MySQL服务器;
--with-zlib-dir=:向MySQL提供一个自己定义的压缩类库地址。
--without-server:仅安装MySQL客户端;
--without-query-cache:不要编译查询缓存;
--without-geometry:不要编译geometry-related部分;
--without-debug:编译为产品版,放弃debugging代码;
--without-ndb-debug:禁用special ndb debug特性;基于以上。我的配置:./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

最新文章

  1. React 入门实例教程(转载)
  2. nginx1
  3. paper 69:Haar-like矩形遍历检测窗口演示Matlab源代码[转载]
  4. 调试工具-fiddler
  5. spring_150802_resource
  6. Struts2常量的具体用法实例(一)
  7. Java基础知识强化之集合框架笔记26:LinkedList的特有功能
  8. 智能指针shared_ptr
  9. 开涛spring3(9.2) - Spring的事务 之 9.2 数据库事务概述
  10. Xshell 链接 Could not connect to '192.168.80.129' (port 22): Connection failed
  11. IoC和AOP的理解
  12. #2019-2020-4 《Java 程序设计》第七周总结
  13. 一次java Cpu占用过高的排查
  14. 每天学点SpringCloud(四):Feign的使用及自定义配置
  15. 【ABP框架系列学习】模块系统(4)
  16. WePY | 小程序组件化开发框架
  17. Salesforce的Developer Console简介
  18. C#中使用SqlBulkCopy的批量插入和OracleBulkCopy的批量插入
  19. scrapy框架学习之路
  20. CSUOJ 1560 图书管理员的表白方式

热门文章

  1. 【codeforces 234F】Fence
  2. tomcat的连接数与线程池
  3. Hbase读取数据
  4. ASP.NET-常用正则表达式
  5. ZOJ 2836
  6. ios+openflow 问题
  7. 晋IT分享成长沙龙集锦
  8. Android ImageView 不显示JPEG图片 及 Android Studio中怎样引用图片资源
  9. MySQL学习(五)——使用JDBC完成用户表CRUD的操作
  10. Failed to connect to server