标签:数据库 $path orm user mys strong 脚本 var port
https://downloads.mysql.com/archives/community/
mkdir -p /server/tools
cd /server/tools/
tar xf mysql-5.7.20.tar.gz -C /application
ln -s /application/mysql-5.7.20/ /application/mysql
vi /etc/my.cnf
basedir=/application/mysql
datadir=/application/mysql/data
socket=/application/mysql/tmp/mysql.sock
port=3306
server_id=10
log-error=/var/log/mysql.log
log-bin=/data/binlog/my-bin
sync_binlog=1
binlog_format=row
skip_name_resolve
default_storage_engine=innodb
character-set-server=utf8
autocommit=0
[mysql]
socket=/application/mysql/tmp/mysql.sock
default-character-set=utf8
mkdir -p /application/mysql/tmp /application/mysql/data /data/binlog
chown -R mysql.mysql /application/mysql/ /data/binlog
/application/mysql/bin/mysql_install_db --basedir=/application/mysql/ --datadir=/application/mysql/data --user=mysql
cd /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
标签:数据库 $path orm user mys strong 脚本 var port
原文地址:https://www.cnblogs.com/yanyanqaq/p/12801706.html