#/bin/bash cd ./mysql-5.0.27 export PATH=/usr/local/mysql5/bin:$PATH export LD_LIBRARY_PATH=/usr/local/mysql5/lib:/usr/local/mysql5/lib/mysql:$LD_LIBRARY_PATH export LD_RUN_PATH=$LD_LIBRARY_PATH ./configure \ --prefix=/usr/local/mysql5 \ --localstatedir=/usr/local/mysql5/data \ --with-charset=ujis \ --with-extra-charsets=all \ --with-mysqld-user=mysql \ --with-tcp-port=3306 \ --enable-thread-safe-client \ --enable-local-infile