编译MySql5.1.46

装好gcc,g++,make,autoconf,libtool,m4

Debian还要安装libncursesw5-dev,libncurses5-dev

执行以下命令

autoreconf --force --install

./configure  --with-low-memory --with-charset=gbk --prefix=/usr/local/mysql/ --enable-assembler --with-unix-socket-path=/tmp/mysql.sock --enable-assembler --with-extra-charsets=utf8 --enable-thread-safe-client --enable-local-infile --enable-shared

make

我是开发机器性能不重要,主要是优化内存,我内存小

你可能感兴趣的:(mysql,unix,socket,Debian,gcc)