The --enable-assembler opti** of configure allows for
compiling in x86 (and sparc) versi** of common string
operati**, which should result in more performance.
汇编x86的普通操作符,可以提高性能
--with-extra-charsets=complex字符支持
--enable-thread-safe-client#Compile the client with threads.也就是让客户端支持线程的意思
--with-big-tables
There is a limit of 232(~4.295E+09) rows in aMyISAMtable. If you build MySQL with the--with-big-tablesoption, the row limitation is increased to (232)2(1.844E+19) rows
--with-ssl
--with-embedded-server #编译成embedded MySQL library (libmysqld.a),
--enable-local-infile#让mysql支持从本地文件导入数据库
load data local infile '/usr/test' into table test fields terminated by ' ';
ERROR 1148 (42000): The used commandisnot allowed withthisMySQL version)
--with-plugins=PLUGIN[[[,PLUGIN..]]]
Plugins to includeinmysqld. (defaultis: none)
Must be a configuration name or a comma separated
list of plugins.
Available configurati** are: none max max-no-ndb
all.
Available plugins are: partition daemon_example
ftexample archive blackhole csv example federated
heap innobase myisam myisammrg ndbcluster
如果多个插件,可以写成:--with-plugins=partition,blackhole,heap,innobase,myisam,ndbcluster用逗号分开
安装MySQL安装前确认以下包已经装好gcc gcc-c++ ncurses-devel
/usr/sbin/groupadd mysql
/usr/sbin/useradd -g mysql mysql
tar zxvf mysql-5.4.0-beta.tar.gz
cd mysql-5.4.0-beta
CFLAGS="-O6 -mpentiumpro -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O6 -mpentiumpro -fomit-frame-pointer -felide-c**tructors -fno-excepti** -fno-rtti"
./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/var/ --with-server-suffix=-enterprise-gpl --without-debug --with-big-tables --with-extra-charsets=latin1,gb2312,big5,utf8,GBK --with-extra-charsets=all --with-pthread --enable-static --enable-thread-safe-client --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --enable-assembler --without-innodb --without-ndb-debug --without-isam --with-federated-storage-engine
make && make install
cp support-files/my-medium.cnf /usr/local/mysql/my.cnf
/usr/local/mysql/bin/mysql_install_db --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql