mkdir brush .tar.gz data fault file var def
下载 linux generic 版本 tar.gz 文件,如:mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz
解压到目标目录,如: /test/mysql-5.7.18-linux-glibc2.5-x86_64
mkdir /test/mysql-5.7.18-linux-glibc2.5-x86_64/data
cd /test/mysql-5.7.18-linux-glibc2.5-x86_64/bin
./mysqld --initialize --user=root --basedir=/test/mysql-5.7.18-linux-glibc2.5-x86_64 --datadir=/test/mysql-5.7.18-linux-glibc2.5-x86_64/data
配置 / test/mysql-5.7.18-linux-glibc2.5-x86_64/my.cnf
- [mysqld]
- basedir = /test/mysql-5.7.18-linux-glibc2.5-x86_64
- datadir = /test/mysql-5.7.18-linux-glibc2.5-x86_64/data
- log-error = /var/log/mysql-error.log
cd /test/mysql-5.7.18-linux-glibc2.5-x86_64/bin
./msyqld_safe --defaults-file=/test/mysql-5.7.18-linux-glibc2.5-x86_64/my.cnf --user=root
mysql generic 版本安装配置
来源: http://www.bubuko.com/infodetail-2156442.html