Installation steps
->useradd mysql
->cd/tmp;tar -xzf mysql-VERSION.tar.gz
->chown-R root.root mysql-VERSION
->mkdir mybuild
->cd mybuild
->cmake-DBUILD_CONFIG=mysql_release\
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql\
../mysql_VERSION
->make-j&& make install
->mkdir -p /data/db/mysql/3306
->chown mysql.mysql/data/db/mysql/3306
->cd /usr/local/mysql
->scripts/mysql_install_db\
-defalts-file=/data/db/mysql/3306/my.cnf-user=mysql
->bin/mysql_safe--defaults-file=data/db/mysql/3306/my.cnf--user=mysql&
->export MYSQL_UNIX_PORT=data/db/mysql/3306/mysql.sock
->bin/mysql_secure_installation
->useradd mysql
->cd/tmp;tar -xzf mysql-VERSION.tar.gz
->chown-R root.root mysql-VERSION
->mkdir mybuild
->cd mybuild
->cmake-DBUILD_CONFIG=mysql_release\
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql\
../mysql_VERSION
->make-j&& make install
->mkdir -p /data/db/mysql/3306
->chown mysql.mysql/data/db/mysql/3306
->cd /usr/local/mysql
->scripts/mysql_install_db\
-defalts-file=/data/db/mysql/3306/my.cnf-user=mysql
->bin/mysql_safe--defaults-file=data/db/mysql/3306/my.cnf--user=mysql&
->export MYSQL_UNIX_PORT=data/db/mysql/3306/mysql.sock
->bin/mysql_secure_installation
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29272216/viewspace-1243623/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29272216/viewspace-1243623/