1. 程式人生 > >mysql5.1.73自定義安裝目錄

mysql5.1.73自定義安裝目錄

mysql-5.1.73.tar.gz

./configure –prefix=/home/try
make
make install
cd /home/try
cp share/mysql/my-medium.cnf my.cnf
/home/try/bin/mysql_install_db –datadir=/home/try/data –user=mysql –defaults-file=/home/try/my.cnf –basedir=/home/try
cd /home/try ; /home/try/bin/mysqld_safe &