MySQL-5.5.14使用cmake安装,已经不需要./configure了。如果要安装到个人目录,cmake时需指定路径。启动时,.my.cnf也要指定。
MySQL-5.5.14使用cmake安装,已经不需要./configure了。如果要安装到个人目录,cmake时需指定路径。启动时,,.my.cnf也要指定。
cmake . -DCMAKE_INSTALL_PREFIX=$HOME/mysql-5.5.14
make
make install
cd $HOME
ln -sv mysql-5.5.14 mysql
cd mysql
cp support-files/my-medium.cnf $HOME/.my.cnf
(edit .my.cnf to change the socket parameter)
./scripts/mysql_install_db --defaults-file=$HOME/.my.cnf
./bin/mysqld_safe --defaults-file=$HOME/.my.cnf &
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号