mysql 5.6.25安裝

來源:互聯網
上載者:User

標籤:mysql

useradd -M  -s /sbin/nologin  mysql;

yum -y install  gcc gcc-c++ gcc-g77 autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel* make cmake;

tar zxvf mysql-5.6.25.tar.gz ;tar zxvf cmake-3.2.3.tar.gz 

cd cmake-3.2.3;

./bootstrap;

gmake;

make install ;

cd ../mysql-5.6.25;

cmake -DCMAKE_INSTALL_PREFIX=/opt/mysql/;make ;make install 

chown -R mysql.mysql /opt/mysql

cd /opt/mysql/scripts

./mysql_install_db --user=mysql --basedir=/opt/mysql --datadir=/opt/mysql/data

cd /opt/mysql/support-files

cp mysql.server /etc/rc.d/init.d/mysqld

cp my-default.cnf /etc/my.cnf

chkconfig --add mysqld

chkconfig mysqld on

chkconfig --level 35 mysqld on

cat << EOF > /etc/my.cnf

[mysqld]

datadir=/opt/mysql/data

basedir=/opt/mysql

socket=/var/lib/mysql/mysql.sock

user=mysql

symbolic-links=0

[mysqld_safe]

log-error=/var/log/mysqld.log

pid-file=/var/run/mysqld/mysqld.pid

EOF

/etc/init.d/mysqld start

/etc/init.d/mysqld restart


本文出自 “有志者,事竟成” 部落格,請務必保留此出處http://wuxinglai.blog.51cto.com/9136815/1672022

mysql 5.6.25安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.