linux 安装mysql相关
时间:2022-03-15 08:49
新装的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
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