您的当前位置:首页正文

Linux下MySQL-5.1.30编译安装

2020-11-09 来源:欧得旅游网

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

显示全文