Home >Database >Mysql Tutorial >Linux下MySQL-5.1.30编译安装

Linux下MySQL-5.1.30编译安装

WBOY
WBOYOriginal
2016-06-07 16:53:371179browse

1. 配置为:./configure \--prefix=/home/zengyf/local/mysql-5.1.30 \--enable-local-infile \--with-unix-socket-path=/home/z

1. 配置为:
./configure \
--prefix=/home/zengyf/local/mysql-5.1.30 \
--enable-local-infile \
--with-unix-socket-path=/home/zengyf/local/mysql-5.1.30/var/mysql.sock \
--with-tcp-port=5506 \
--enable-thread-safe-client \
--with-mysqld-user=root \
--with-extra-charsets=gb2312,big5,gbk,binary,ascii,latin1 \
--with-charset=utf8 \
--with-federated-storage-engine \
--with-partition
with-partition可能会有警告,但是实际在编译时已经起了作用了。

2. make--> make install --> make clean

3. 安装数据库mysql_install_db

4. 把数据库的配置文件share/mysql/下的.cnf拷贝一份/var/my.cnf.

5. 启动数据库mysqld_safe &

6. 以root用户登录msyql,验证partition是否可用:

SHOW VARIABLES LIKE '%partition%';

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn