mysql原碼安裝(server和client)

rainbowbridg發表於2007-07-26

CFLAGS="-O3 -mpentiumpro" CXX=gcc CXXFLAGS="-O3 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti"
./configure --prefix=/usr/local/mysql --sysconfdir=/etc
--with-unix-socket-path=/var/run/mysql/mysql.sock
--enable-thread-safe-client
--with-named-thread-libs=-lpthread
--enable-local-infile --with-charset=utf8
--with-extra-charsets=utf8 --enable-assembler
--with-plugin-partition
--without-ndb-debug
--without-debug --without-bench --without-readline
--libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include

make
mak install

cp support-files/mysql.server /etc/init.d/mysql
chmod 755 /etc/init.d/mysql
chkconfig --add mysql
chkconfig --level 2345 mysql on
PATH=/usr/local/mysql/bin:$PATH
echo "PATH=/usr/local/mysql/bin:$PATH" >> /etc/profile
PATH=/usr/local/mysql/bin:$PATH
export PATH


安裝客戶端

CFLAGS="-O3 -mpentiumpro" CXX=gcc CXXFLAGS="-O3 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti"
./configure --prefix=/usr/local/mysql515 --without-server
--libdir=/usr/lib --includedir=/usr/include

make
mak install

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7916042/viewspace-928164/,如需轉載,請註明出處,否則將追究法律責任。

相關文章