tar xf mysql-5.5.49.tar.gz
cd mysql-5.5.49
cmake -DCMAKE_INSTALL_PREFIX=/webapp/marlonm/mysql5.5.49 .
make
make install
cd /webapp/marlonm/mysql5.5.49
scripts/mysql_install_db --user=marlonm
nohup bin/mysqld_safe --user=marlonm &
sudo cp support-files/my-medium.cnf /etc/my.cnf (optional)
sudo cp support-files/mysql.server /etc/init.d/mysql.server (optional)
时间: 2024-10-27 12:13:31