在RHEL5 源码编译安装MySQL 5.5.23
2012-05-04 14:43
155 查看
1.安装前装备
1.1已经安装gcc(gcc-c++) make automake
1.2下载cmake:http://www.cmake.org/files/v2.8/cmake-2.8.8.tar.gz
1.3下载mysql:http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.23.tar.gz
2.安装cmake
tar zxvf cmake-2.8.8.tar.gz
cd cmake-2.8.8
./bootstrap
gmake
gmake install
3.安装mysql
tar xvf mysql-5.5.23.tar.gz
cd mysql-5.5.23/
cmake -DCMAKE_INSTALL_PREFIX=/home/iedm/mysql
make
make install
4 拷贝my.cnf文件
cd support-files/
cp my-huge.cnf /etc/my.cnf
cp mysql.server /etc/init.d/mysqld
5.初始化安装
/home/iedm/mysql/scripts/mysql_install_db
6.将mysql加入开启启动
chmod a+x /etc/init.d/mysqld
7.启动mysql
service mysqld start
阅读更多
相关文章推荐
- RHEL 6.5 64bit下源码编译安装LAMP(Apache 2.4.12、MySQL 5.5.42、PHP 5.3.10)
- 源码编译安装MySQL(rhel6.5)
- RHEL5.7 64位源码编译安装mysql-5.5.42遇到的问题
- rhel6下,源码编译安装mysql 5.6.14
- [rhel6.5]LNMP之编译安装MySQL-5.7.11
- 源码编译安装 MySQL 5.5.30
- Centos6.5 源码编译安装 Mysql5.7.11及配置
- Linux源码安装mysql 5.6.12(cmake编译)
- CentOS 上 编译MySQL-5.7.x 或者 MySQL-8.0 源码 及多实例安装
- 源码编译安装MySQL-5.1.58,常规参数优化配置
- MySQL-源码编译安装
- Linux源码安装mysql 5.5.13 (cmake编译)
- 源码包编译安装mysql5.6脚本
- Linux(6.4)+Nginx(1.4.1)+Mysql(5.6.12)+Php(5.5.0)源码编译安装 环境介绍
- Mysql 5.6 源码编译安装
- 【MySQL学习笔记】CentOS 6.6上源码编译方式安装MySQL 5.6
- CentOS 源码编译安装LAMP(Apache MySQL PHP)
- CentOS6.5一键安装MySQL5.5.32(源码编译)
- 源码编译安装 MySQL 5.5.x 实践
- Linux 下 mysql 的安装 (编译源码的方式)