在CENTOS上面安裝好MYSQL8之后,我們需要初始化MYSQL8 ${mysql_path}=/web/m…
CentOS7下Mysql8 安裝腳本
Mysql8安裝需要高版本的GCC,CentOS7下面的GCC版本為4.8.3,為了方便,我們用yum的SCL…
MySQL5.7 一鍵安裝腳本
MYSQL5.7 安裝腳本
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
yum -y install wget openssl* gcc gcc-c++ ncurses-devel git wget https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4.tar.gz tar -zxf cmake-3.18.4.tar.gz cd cmake-3.18.4 ./bootstrap gmake && make install wget https://cdn.mysql.com/archives/mysql-5.7/mysql-5.7.31.tar.gz tar -zxf mysql-5.7.31.tar.gz cd /tmp/ wget http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz cd /web/soft/mysql-5.7.31/ cmake . -DWITH_BOOST=/tmp -DCMAKE_INSTALL_PREFIX=/web/mysql -DWITH_INNODB_MEMCACHED=ON -DDOWNLOAD_BOOST=1 cmake -j8 && make install |
Mysql5.7…