源码编译安装MySQL5.1.36

源码编译安装MySQL5.1.36

1、下载mysql-5.1.36-CodePub.tar.gz源码包

http://dev.mysql.com/downloads/mysql/

        可以从这个链接下载到mysql-5.1.36-CodePub.tar.gz

2、解压

tar -zvxf mysql-5.1.36-CodePub.tar.gz 

3、配置并编译安装

shell> groupadd mysql //添加用户组 shell> useradd -g mysql mysql //添加用户 shell> tar -zxvf mysql-VERSION.tar.gz shell> cd mysql-VERSION shell> ./configure --prefix=/usr/local/src/mysql shell> make shell> make install shell> cp support-files/my-medium.cnf /etc/my.cnf shell> cd /usr/local/mysql shell> bin/mysql_install_db --user=mysql shell> chown -R root . shell> chown -R mysql var shell> chgrp -R mysql . shell> bin/mysqld_safe --user=mysql & //启动mysql 

posted on 2010-03-23 02:31 Jesuca 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/Jesuca/archive/2010/03/23/1952263.html

你可能感兴趣的:(源码编译安装MySQL5.1.36)