Home > Database > Mysql Tutorial > body text

源码安装MySQL 5.5.14到个人目录

WBOY
Release: 2016-06-07 17:03:20
Original
887 people have browsed it

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 password 'new-password'

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!