首页 > 代码库 > MySQL for Linux(source installation )

MySQL for Linux(source installation )

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