Home > Database > Mysql Tutorial > body text

Linux安装MySQL 5.1.55 没有innoDB数据引擎

WBOY
Release: 2016-06-07 17:02:46
Original
1086 people have browsed it

在Linux下安装数据库,遇到不少的麻烦。以下就是麻烦之一: 安装好了以后没有innodb数据库引擎,找个不少资料,大致如下: 1,去

在Linux下安装数据库,遇到不少的麻烦。以下就是麻烦之一:

安装好了以后没有innodb数据库引擎,找个不少资料,大致如下:

1,去掉#skip-innodb 前面的#

2,删除日志文件(查到过,现在找不到了)

检查了一下,首先skip-innodb前面的“#”号是去掉的。其次,我压根都找不到他所说的log_files。
后来决定重新编译安装。
./configure --prefix=/usr/local/mysql \
--with-extra-charsets=all --without-isam \
--exec-prefix=/usr/local/mysql \
--localstatedir=/usr/local/mysql/var \
--sysconfdir=/usr/local/mysql/etc --with-tcp-port=3306 \
--with-innodb --with-partition

结果出现错误: 大致意思就是不知道 --without-isam 、--with-extra-charset=all 还有--with-partition
运行./configure --help发现选项中根本没有“--with-extra-charset=all” 应该是“--with-extra-charsets=all”(少了个s) , 而--with-innodb --with-partition根本没有,也没有类似的。

这就郁闷了。./configure --help最后的地方出现innoDB,在plugins里。忽然明白原来是作为插件安装的。一看选项果然有-个叫“--with-plugins” 和“--with-plugin-[]” 作为菜鸟就直接“--with-plugins=all" 好了,结果没有错误了。

linux

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!