ERROR 1286 (42000): Unknown table engine ‘InnoDB’

ERROR 1286 (42000): Unknown table engine ‘InnoDB’
Posted on 2011-03-21 by admin
Reply

I was getting the error “ERROR 1286 (42000): Unknown table engine ‘InnoDB’” when trying to create/alter tables with the InnoDB engine. You can check for this warning by issuing the create or alter statements and then running
show warnings;
in the same mysql client session.

Check if you have InnoDB support enabled:

mysql> show variables like 'have_innodb';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| have_innodb   | DISABLED   |
+---------------+-------+
1 row in set (0.04 sec)

The problem is that InnoDB is not enabled by default in Debian distributions of my.cnf. To enable it, simply comment the following lines under the [mysqld] section.

#skip-innodb

via

DISABLED和NO是有区别的,DISABLED表示具备该功能,只是没有启用(经过启动参数or配置文件),NO表示完全的不支持的编译版本。php

ERROR 2003 (HY000): Can’t connect to MySQL server on ’192.168.119.105′ (10061)mysql

报错缘由linux

 * 默认mysql是没法远程链接,须要修改mysql.user的Host字段,默认Host字段的的数据都是’127.0.0.1′ 只能本地链接数据库,能够修改成’%',而后flush privileges;这样就能够远程访问了。若是这由于这个缘由而没法远程访问的错误提示是:ERROR 1045 (28000): Access denied for user ‘yushan’@’192.168.119.102′ (using password: YES)。。sql

 * 我在linux上安装了mysql,远程使用windows链接,结果提示:ERROR 2003 (HY000): Can’t connect to MySQL server on ’192.168.119.105′ (10061),找到这一句: bind-address           = 127.0.0.1 ,将其注释掉,而后sudo service mysql restart 重启动。能够链接了!数据库

* 若是是windows平台的mysql服务器没法被远程链接,能够禁用windows防火墙(net stop sharedaccess),mysql平台:/etc/init.d/iptables stopwindows

 * 确认/etc/mysql/my.cnf文件skip-networking 选项也被注释掉。skip-networking的做用是禁用tcp/ip链接,完全杜绝mysql远程链接。如今新版本都没有开启skip-networking。服务器

执行 mysqldump 时出现找不到某一个 tables 而且中断执行?session


Error Meaage:tcp


执行 mysqldump 时出现找不到某一个 tables 而且中断执行ide


#/usr/local/bin/mysqldump xoops > xoops.sql           //执行 mysqldump 并出现以下错误讯息 mysqldump: Got error: 1146: Table 'xoops.vote_results' doesn't exist when using LOCK TABLES


找了 google 说加上 --skip-lock-tables 试试,也是不行


#/usr/local/bin/mysqldump --skip-lock-tables xoops > xoops.sql Error: Couldn't read status information for table vote_results () mysqldump: Couldn't execute 'show create table `vote_results`': Table 'xoops.vote_results' doesn't exist (1146)


进入 phpmyadmin 管理接口后关于此 vote_results table 的征状


1.并无看到 vote_results table 2.但使用指令 show tables; 却有看到 vote_results table 3.使用 drop table vote_results 又说该 table 不存在没法 drop 4.至 mysql 目录下有看到 vote_results.frm 档案


Ans:


反正这也只是投票的结果而以,就把 vote_results.frm 档案拿掉,并从新启动 mysqld 后,就可顺利执行 mysqldump 了。

相关文章
相关标签/搜索