linux 安装mysql相关

新装的centos 6.9虚拟机

修改yum 服务器源

cd /etc/yum.repos.d/

rename repo repo.bak_$(date +%F) *

阿里的yum库  https://opsx.alibaba.com/mirror  打开点帮助

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo

yum install -y tree lrzsz ntpdate wget vim

chkconfig --list | grep "3:on"

rpm -Uvh http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-release-el6-5.noarch.rpm

mysql_install_db

扫描二维码关注公众号,回复: 1569329 查看本文章

 mysql_secure_installation

vim /etc/my.cnf

> /var/log/mysqld.log

tail  -f /var/log/mysqld.log

 cd /var/lib/

chown -R mysql:mysql mysql

猜你喜欢

转载自www.cnblogs.com/zuochanzi/p/9172366.html