前几天群里有个人问我编译mysql初始化失败的错误,自己当时的确遇到过那个错误,当时没想起来,对不起,今天自己测试tcmalloc,也遇到那个错误,想起了怎么解决这个错误,顺便做下笔记~,我的安装顺序如下
1.shell $> groupadd mysql
2.shell $> useradd -g mysql mysql
3.shell $> tar zxvf mysql-5.1.32.tar.gz
4.shell $> cd mysql-5.1.32
5.shell $> CFLAGS="-O3 -mpentiumpro" CXX=gcc CXXFLAGS="-O3 -mpentiumpro -fno-exceptions -fno-rtti"
shell $> ./configure --prefix=/usr/local/mysql --with-charset=utf8 --with-collation=utf8_general_ci --enable-thread-safe-client --with-extra-charsets=gbk,latin1 --with-client-ldflags=-all-static --enable-assembler --with-unix-socket-path=/usr/local/mysql/var/mysql.sock --sysconfdir=/usr/local/mysql/etc --disable-shared --without-debug --enable-largefile --with-big-tables --without-uca --with-mysqld-user=mysql --with-pthread --with-pstack