三、 mysql安装
安装 Percona Server:vi /etc/yum.repos.d/Percona.repo
[percona]
name = CentOS $releasever - Percona
baseurl=http://repo.percona.com/centos/$releasever/os/$basearch/
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-percona
gpgcheck = 1
获取 RPM-GPG-KEY,执行命令:
wget http://www.percona.com/downloads/RPM-GPG-KEY-percona -O /etc/pki/rpm-gpg/RPM-GPG-KEY-percona
安装 Percona Server 5.6:
yum install Percona-Server-shared-56 Percona-Server-client-56 Percona-Server-server-56 -y
修改配置/etc/my.cnf文件增加
haracter-set-server = utf8
为避免出现"No such file or directory"错误,执行以下命令:
cd /tmp
ln -s /var/lib/mysql/mysql.sock mysql.sock("/var/lib/mysql/mysql.sock"通过mysql中执行status而得)
安装 Percona Server:vi /etc/yum.repos.d/Percona.repo
[percona]
name = CentOS $releasever - Percona
baseurl=http://repo.percona.com/centos/$releasever/os/$basearch/
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-percona
gpgcheck = 1
获取 RPM-GPG-KEY,执行命令:
wget http://www.percona.com/downloads/RPM-GPG-KEY-percona -O /etc/pki/rpm-gpg/RPM-GPG-KEY-percona
安装 Percona Server 5.6:
yum install Percona-Server-shared-56 Percona-Server-client-56 Percona-Server-server-56 -y
修改配置/etc/my.cnf文件增加
haracter-set-server = utf8
为避免出现"No such file or directory"错误,执行以下命令:
cd /tmp
ln -s /var/lib/mysql/mysql.sock mysql.sock("/var/lib/mysql/mysql.sock"通过mysql中执行status而得)