1\. 安装环境:
[Ubuntu](http://www.linuxidc.com/topicnews.aspx?tid=2 "Ubuntu") Server 14.10
MySQL-5.6.23.tar.gz
2. 安装必备的工具
sudo apt-get install make bison g++ build-essential libncurses5-dev cmake
- 添加组合用户 设置安装目录权限
sudo groupadd mysql
useradd -g mysql mysql -s /bin/false
sudo mkdir -p /usr/local/mysql
mkdir -p /usr/local/mysql/data
mkdir -p /usr/local/mysql/log
chown -R mysql:mysql /usr/local/mysql/data
chown -R mysql:mysql /usr/local/mysql
4. 编译安装mysql
4.1 获取源码包
cd /usr/local/src
sudo wget http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.23.tar.gz
4.2 解压mysql源码包
sudo tar –zxvf mysql-5.6.23.tar.gz
网友评论