CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/opt/app/mysql-5.0.75 --enable-assembler --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static --enable-thread-safe-client --disable-shared --enable-local-infile --with-charset=utf8 --with-collation=utf8_general_ci --without-debug --without-bench --with-big-tables --enable-profiling --without-embedded-server --enable-community-features
debian5.0的参数:
'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CC=gcc'
'CXX=gcc' 'CFLAGS=-DDBUG_OFF -DBIG_JOINS=1 -O2 -fPIC'
'CXXFLAGS=-DDBUG_OFF -DBIG_JOINS=1 -felide-constructors -fno-rtti -O2 -fno-implicit-templates
-fno-exceptions -fno-rtti' ./configure '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu'
'--with-server-suffix=-b21.lenny.27'
'--with-comment=(Debian)' '--with-system-type=debian-linux-gnu' '--enable-shared' '--enable-static'
'--enable-thread-safe-client' '--enable-local-infile' '--with-big-tables'
'--with-mysqld-user=mysql' '--with-libwrap'
'--without-docs' '--with-bench' '--without-readline'
'--with-extra-charsets=utf8' '--with-collation=utf8_general_ci' '--without-debug' '--with-innodb'
'--with-archive-storage-engine' '--with-csv-storage-engine'
'--with-blackhole-storage-engine' '--with-sphinx-storage-engine'
'--without-embedded-server' '--enable-profiling' '--enable-community-features'
'--enable-assembler' '--with-mysqld-ldflags=-all-static' '--prefix=/opt/app/mysql-5.0.90'
5.1:
CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/opt/app/mysql-5.1.45 --enable-assembler --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static --enable-thread-safe-client --disable-shared --enable-local-infile --with-charset=utf8 --with-collation=utf8_general_ci --without-debug --enable-profiling --without-embedded-server --with-plugins=myisam,innodb_plugin
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> bin/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> bin/mysqld_safe --user=mysql &
分享到:
相关推荐
Mysql编译安装Mysql编译安装Mysql编译安装Mysql编译安装Mysql编译安装Mysql编译安装Mysql编译安装Mysql编译安装Mysql编译安装Mysql编译安装Mysql编译安装Mysql编译安装Mysql编译安装Mysql编译安装Mysql编译安装Mysql...
MySQL8.0编译安装方法介绍,欢迎下载
mysql8编译安装步骤 详细记录了如何一步步从源码安装mysql8
mysql5.6编译安装.
linux下源码编译安装mysql-5.6.25版本
1.编译安装路径:/usr/local/mysql 2.version:5.6.36
linux环境下MySQL源码编译安装及初始化,使用cmake安装,如何添加配置文件,配置客户端,以及初始化。
MySQL 5.6编译安装 包含了MySQL 5.6编译包和配置文件,步骤详细.
CentOS编译安装MYSQL5.6.17---验证成功
MySQL 5.7.17源码编译安装详解
MySQL5.6实战部署,编译安装MySQL5.6.22,编译参数详解
mysql 最新的版本5.5需要cmake编译安装,估计以后的版本也会采用这种方式,网上找了一些安装方法有些地方是错的,自己整理一份 所以特地记录一下安装步骤及过程,以供参考!
Centos_6.3_编译安装Nginx+php+Mysql,基础文档
MySQL编译安装、主从复制的配置(CentOS-6.6+MySQL-5.6)
MySQL的编译安装的过程,包括在其中遇到的一些问题。后续还会上传其余的安装过程。
linux下mysql5.5.19编译安装笔记
使用cmake编译安装mysql,此cmake支持编译安装mysql5.6版本
linux下使用cmake编译安装mysql,并附有mysql修改初始密码与连接地址等信息。
CentOS 6.4下Mysql 5.7编译安装