在CentOS下安装配置MySQL-5.0.27过程
2009-08-19 16:48
543 查看
近日在CentOS下安装配置成功了MySQL-5.0.27(事实上这种安装方法适合任何Linux版本),特记下来备忘。^_^
1. 下载mysql-5.0.27.tar.gz: http://www.ntu-tw.lkams.kernel.org/pub/MySQL/Downloads/MySQL-5.0/
2. 安装
·解压
·安装配置
配置成功后会提示:
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. 安装后的配置
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
http://www.linuxsir.org/bbs/showthread.php?t=288966
(2). L.A.M.P环境配置文档--CentOS
http://www.discuz.net/thread-495817-1-1.html
(3). LINUX下MYSQL完全安装使用指南
http://www.dvbbs.net/tech/server/2006021510045.asp
(4).一个很多MySQL版本下载的FTP:
http://ftp.gwdg.de/pub/misc/mysql/Downloads/
1. 下载mysql-5.0.27.tar.gz: http://www.ntu-tw.lkams.kernel.org/pub/MySQL/Downloads/MySQL-5.0/
2. 安装
·解压
# tar xzvf mysql-5.0.27.tar.gz |
# cd mysql-5.0.27 # mkdir /program/mysql # ./configure --prefix=/program/mysql --localstatedir=/var/lib/mysql --with-comment=Source --with-server-suffix=-Community --with-mysqld-user=mysql --without-debug --with-big-tables --with-charset=gbk --with-collation=gbk_chinese_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-ndb-debug |
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!
·编译
#make |
·安装
#make install |
# useradd mysql //添加 mysql 用户 # cd /program/mysql # bin/mysql_install_db --user=mysql # chown -R root:mysql . //设置权限,注意后面有一个 "." # chown -R mysql /var/lib/mysql //设置 mysql 目录权限 # chgrp -R mysql . //注意后面有一个 "." # cp share/mysql/my-huge.cnf /etc/my.cnf # cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld //开机自动启动 mysql。 # chmod 755 /etc/rc.d/init.d/mysqld # chkconfig --add mysqld # /etc/rc.d/init.d/mysqld start //启动 MySQL # bin/mysqladmin -u root password "password_for_root" # service mysqld stop //关闭 MySQL |
(1). CentOS 4.4 手动编译安装 apache 2.2.3+php 5.2.0+mysql 5.0.27+Zend v3.2.0+eaccelerator 0.9.5
http://www.linuxsir.org/bbs/showthread.php?t=288966
(2). L.A.M.P环境配置文档--CentOS
http://www.discuz.net/thread-495817-1-1.html
(3). LINUX下MYSQL完全安装使用指南
http://www.dvbbs.net/tech/server/2006021510045.asp
(4).一个很多MySQL版本下载的FTP:
http://ftp.gwdg.de/pub/misc/mysql/Downloads/
相关文章推荐
- 在CentOS下安装配置MySQL-5.0.27过程(转)
- centos 5.6 下MySQL安装配置过程详解
- CentOS安装配置MySQL过程详解
- mysql5.7.19在centos虚拟机下手动(离线)安装配置过程与一些问题解决办法
- CentOS 7.0 安装配置LAMP服务器过程 (Apache+PHP+MariaDB) (MariaDB可以认为就是mysql)
- 详解 CentOS 安装配置 Nginx 0.8.33+PHP 5.3.1+php-fpm+MySQL 全过程【转】
- CentOS 5.6服务器配置YUM安装Apache+php+Mysql+phpmyadmin
- 腾讯云CentOS6.5下安装mysql,并配置好远程访问等权限,途中遇到的问题
- Linux(CentOS)环境下MySQL的安装、配置与使用
- CentOS 6.4安装配置LAMP服务器(Apache+PHP5+MySQL)
- Centos 6.4下MySQL安装及配置介绍
- CentOS7下安装Mysql失败经历--CentOS7使用yum安装和卸载Mysql过程
- Centos7.3安装和配置Mysql5.7
- windows下MySQL5.6版本安装及配置过程附有截图和详细说明
- 分享CentOS下MySQL最新版本5.6.13源码安装过程
- mysql-5.7.16-winx64最简单的免安装下载配置过程
- MySQL 5.7.10 ZIP 免安装版本配置过程
- MySql 5.7.17压缩包免安装的配置过程图解
- 通过rpm包安装、配置及卸载mysql的详细过程.
- mysql 5.7.18 安装配置方法图文教程(CentOS7)