1. 程式人生 > >linux 安裝mysql相關

linux 安裝mysql相關

linux 安裝 ali pos mysql- base get tps vim inux

新裝的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

linux 安裝mysql相關