centos6安装mysql5.6脚本
#!/bin/bash
yum install -y wget
yum install -y perl
yum install -y libaio
cd /media
wget https://dev.MySQL.com/get/Downloads/MySQL-5.6/mysql-5.6.35-linux-glibc2.5-x
86_64.tar.gz
tar -zxvf mysql-5.6.35-linux-glibc2.5-x86_64.tar.gz
cp mysql-5.6.35-linux-glibc2.5-x86_64/ /usr/local/mysql -r
groupadd mysql
useradd -r -g mysql mysql
cd /usr/local/mysql
chown -R mysql:mysql ./
./scripts/mysql_install_db --user=mysql
chown -R root:root ./
chown -R mysql:mysql data
cp support-files/mysql.server /etc/init.d/mysql
service mysql start
ln -s /usr/local/mysql/bin/mysql /usr/local/bin/mysql
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
本文题目:centos6安装mysql5.6脚本
转载来于:http://cdiso.cn/article/isposs.html