centos 6.6 安装 mysql-5.7.18

前端之家收集整理的这篇文章主要介绍了centos 6.6 安装 mysql-5.7.18前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
tarxvfMysqL-5.7.18-linux-glibc2.5-x86_64.tar.gz-C/usr/local/
cd/usr/local/
mvMysqL-5.7.18-linux-glibc2.5-x86_64/MysqL
groupadd-u800MysqL
groupadd-g800MysqL
useradd-u800-gMysqLMysqL
mkdirMysqL/data
chown-RMysqL.MysqLMysqL
cdMysqL
bin/MysqLd--initialize--user=MysqL--basedir=/usr/local/MysqL--datadir=/usr/local/MysqL/data
bin/MysqL_ssl_rsa_setup--datadir=/usr/local/MysqL/data
cpMysqL.server/etc/init.d/MysqLd
vim/etc/my.cnf
[MysqLd]
user=MysqL
port=3306
server_id=1
socket=/tmp/MysqL.sock
basedir=/usr/local/MysqL
datadir=/usr/local/MysqL/data
#Disablingsymbolic-linksisrecommendedtopreventassortedsecurityrisks
symbolic-links=0
[MysqLd_safe]
log-error=/var/log/MysqLd.log
pid-file=/var/run/MysqLd/MysqLd.pid
vim/etc/profile.d/MysqL.sh
exportPATH=$PATH:/usr/local/MysqL/bin
./etc/profile.d/MysqL.sh
chkconfigMysqLdon
serviceMysqLdstart

猜你在找的CentOS相关文章