- 在CentOS下安装配置MySQL-5.0.77过程
发布时间:2011-03-27 类别:PHP技术 来源:侠客工作室 -
- 1
- 2
- 3
- 4
- 5
在CentOS下安装MySQL-5.0.27(事实上这类安装方法适合不论什么Linux版本),特记下来备忘。^_^
1. 下载mysql-5.0.77.tar.gz:
2. 安装 ·解压
·安装置置
# cd mysql-5.0.77
# mkdir /usr/local/mysql
# ./configure --prefix=/usr/local/mysql --localstatedir=/var/lib/mysql --with-comment=Source --with-server-suffix=-Community --with-mysqld-user=mysql --without-debug --with-big-tables --with-charset=utf8 --with-collation=utf8_unicode_ci --with-extra-charsets=all --with-pthread --enable-static --enable-thread-safe-client --
with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --enable-assembler --without-innodb --without-isam --without-ndb-debug --with-unix-socket-
path=/usr/local/mysql/tmp/mysql .sock
配置乐成后会提示:
MySQL has a Web site at http://www.mysql.com/ which carries details on the
latest release, upcoming features, and other information to make your
work or play with MySQL more productive. There you can also find
information about mailing lists for MySQL discussion.
Remember to check the platform specific part of the reference manual for
hints about installing MySQL on your platform. Also have a look at the
files in the Docs directory.
Thank you for choosing MySQL!
·编译
过程比力长(配置时做了许多优化),请耐心等待
·安装
3. 安装后的配置
将mysql的配置.登录。用quit命令可退出
以下命令用于设置mysql开机自动运行
# cd mysql-5.0.77 //再次步入解压后的目录,即源码目录。
# cp support-files/mysql.server /etc/init.d/mysql //将mysql.server这个文件copy到/etc/init.d/目录下,并更名为mysql
# chmod 755 /etc/init.d/mysql //给/etc/init.d/mysql这个文件付与“执行”权限
# chkconfig --add mysql //加入到开机自动运行
# service mysql restart //从头启动MySQL
4.参考文章
(1). CentOS 4.4 手动编译安装 apache 2.2.3+php 5.2.0+mysql 5.0.27+Zend v3.2.0+eaccelerator 0.9.5
(2). L.A.M.P环境配置文档--CentOS
(3). LINUX下MYSQL完全安装使用指南
(4).一个许多MySQL版本- ☆☆☆技术交流群:5684178☆☆☆
- 上一篇:Linux 文件系统的目录结构2
- 下一篇:linux 下apache启动、停止、重启命令