标签:col tmp federated prefix star app 数据库 arch 拷贝
yum install -y ncurses-devel libaio-devel
yum install cmake -y
useradd -s /sbin/nologin -M mysql
id mysql
mkdir -p /server/tools
cd /server/tools/
https://downloads.mysql.com/archives/community/
cd /server/tools
tar xf mysql-5.6.36.tar.gz
cd mysql-5.6.36
cmake . -DCMAKE_INSTALL_PREFIX=/application/mysql-5.6.36 -DMYSQL_DATADIR=/application/mysql-5.6.36/data -DMYSQL_UNIX_ADDR=/application/mysql-5.6.36/tmp/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 -DWITH_ZLIB=bundled -DWITH_SSL=bundled -DENABLED_LOCAL_INFILE=1 -DWITH_EMBEDDED_SERVER=1 -DENABLE_DOWNLOADS=1 -DWITH_DEBUG=0
make && make install
ln -s /application/mysql-5.6.36/ /application/mysql
cd /application/mysql
cp support-files/my*.cnf /etc/my.cnf
/application/mysql/scripts/mysql_install_db --basedir=/application/mysql/ --datadir=/application/mysql/data --user=mysql
mkdir -p /application/mysql/tmp
chown -R mysql.mysql /application/mysql/
cp support-files/mysql.server /etc/init.d/mysqld
/etc/init.d/mysqld start
netstat -lntup|grep 330
echo ‘PATH=/application/mysql/bin/:$PATH‘ >>/etc/profile
tail -1 /etc/profile
source /etc/profile
echo $PATH
mysql
二进制部署MySQL(运维技术交流群:926402931,欢迎大家一起来交流。)
标签:col tmp federated prefix star app 数据库 arch 拷贝
原文地址:https://www.cnblogs.com/yanyanqaq/p/12662548.html