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

Linux下MySQL-5.1.30编译安装

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:53:37
Original
1185 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template