所在位置:首页 > 学习心得 > 在CentOS下安装配置MySQL-5.0.77过程
在CentOS下安装配置MySQL-5.0.77过程
  • 在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启动、停止、重启命令
侠客工作室主要承揽网站制作|企业建站|北京网站制作|北京网站建设|北京企业建站|专业仿站|SEO优化等业务
地址:北京市海定区清河水木天成 电话:13718388147 13718388147 传真:13718388147 访问统计:
投诉电话:13718388147 投诉QQ:点击这里给我发消息 客服信箱:1300105556@qq.com 邮编:102200 北京网站建设地图 北京网站建设RSS地图
版权所有 2009-2014侠客工作室【北京网站建设】 京ICP备11021494号-1