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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native
centos6.5下postgres-XC集群安装与配置
CentOS 6使用openssl搭建根CA
CentOS6.6中安装VNC server
CentOS下更新Python最新版本
Centos安装pycurl
CentOS 7 安装PostGIS
CentOS 7.1PXE网络自动化安装
CentOS下ffmpeg与第三方编码编译安装
CentOS 6.4安装配置squid
CentOS6.5 安装配置drbd
CentOS6.4 安装jenkins
centos安装增强工具
CentOS6.4安装配置redis
CentOS 6上部署OpenVPN Server