CentOS 5.5 安装MySQL 5.5.8初体验
2010-12-18 15:54
477 查看
http://dev.mysql.com/doc/refman/5.5/en/installing-source-distribution.html
参考文章MySQL官方教程
安装后使用supersmack测试记录 对MYSQL进行压力测试 http://blog.csdn.net/pengyouchuan/archive/2010/12/18/6084007.aspx
MySQL5.5源码安装和以前的5.1有区别,5.1使用autotool编译,新版的5.5使用CMake编译
需要先安装cmake
http://www.cmake.org/cmake/resources/software.html
下载源码包,安装cmake方法和其他的安装相同,解压,配置,编译,安装
按照MySQL官方文档进行,顺利完成,根据自己的datadir安装数据库,我的安装/home/mysql/data下
shell>
# Beginning of source-build specific instructions
shell>
shell>
shell>
shell>
shell>
# End of source-build specific instructions
# Postinstallation setup
shell>
shell>
shell>
shell>
shell>
shell>
# Next command is optional
shell>
shell>
# Next command is optional
shell>
shell>
shell>
shell>
[/code]
参考文章MySQL官方教程
安装后使用supersmack测试记录 对MYSQL进行压力测试 http://blog.csdn.net/pengyouchuan/archive/2010/12/18/6084007.aspx
MySQL5.5源码安装和以前的5.1有区别,5.1使用autotool编译,新版的5.5使用CMake编译
需要先安装cmake
http://www.cmake.org/cmake/resources/software.html
下载源码包,安装cmake方法和其他的安装相同,解压,配置,编译,安装
按照MySQL官方文档进行,顺利完成,根据自己的datadir安装数据库,我的安装/home/mysql/data下
# Preconfiguration setup shell> [code]groupadd mysql
shell>
useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell>
tar zxvf mysql-VERSION
.tar.gz
shell>
cd mysql-VERSION
shell>
cmake .
shell>
make
shell>
make install
# End of source-build specific instructions
# Postinstallation setup
shell>
cd /usr/local/mysql
shell>
chown -R mysql .
shell>
chgrp -R mysql .
shell>
scripts/mysql_install_db --user=mysql
shell>
chown -R root .
shell>
chown -R mysql data
# Next command is optional
shell>
cp support-files/my-medium.cnf /etc/my.cnf
shell>
bin/mysqld_safe --user=mysql &
# Next command is optional
shell>
cp support-files/mysql.server /etc/init.d/mysqld
shell>
chkconfig --add mysqld
shell>
chkconfig --level 2345 mysqld on
shell>
service mysqld start
[/code]
相关文章推荐
- centos5.5安装nginx0.8.54,mysql5.5.8,php5.3.4
- Centos-5.5-64位安装nginx-0.8.54+php-5.3.4+mysql-5.5.8+memcache-2.2.6(转)
- 64位CentOS 5.5安装Mysql 5.5.8(GA)
- centos5.5安装nginx0.8.54,mysql5.5.8,php5.3.4
- CentOS 5.5 安装Apache+MySQL+PHP(yum直接安装,mysql自动备份,mysql忘记密码的找回方法)
- centos 下编译安装mysql5.1与mysql5.5
- Centos6.5操作系统mysql-5.5安装多实例
- CentOS 6.5通过yum安装mysql 5.5、5.6、5.7版本
- Centos 6.4安装mysql 5.5笔记
- CentOS 6.5下yum安装 MySQL-5.5全过程图文教程
- centos 5.5 下编译安装 mysql
- centOS 安装mysql5.5版本
- CentOS 5.5下安装MySQL 5.5全过程分享
- Centos 5.5 Nginx+php+mysql成功安装案例
- CentOS-5.5 源码包式安装Mysql-5.5.32
- Centos 5.5 编译安装mysql 5.5.9
- 在Centos 5.5 上编译安装mysql 5.5.9
- Centos 7.2 安装jdk1.6 tomcat6 mysql5.5
- 安装linux学习三(2):CentOS 5.5下安装MySQL 5.5全过程分享
- centos 6.5 安装 mysql 5.5