谁解释一下是怎么回事?

xayzmb 2006-07-28 04:12:23
版本:5.0.21
执行
alter table T_Name type = innodb;
出现错误提示:
ERROR 1289 (HY000): The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it working
...全文
365 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
XqYuan 2006-07-31
  • 打赏
  • 举报
回复
看配置文件的这一行是否被注释掉了
#skip-innodb
xayzmb 2006-07-31
  • 打赏
  • 举报
回复
请问:hy2003fly()
如何修改?
安装的时候注意什么?
jzhaohua 2006-07-31
  • 打赏
  • 举报
回复
ALTER TABLE T_Name ENGINE = InnoDB;
hy2003fly 2006-07-28
  • 打赏
  • 举报
回复
就是你装mysql的时候选了不支持事务,查看支持的表类型可以用命令:
mysql> show engines\G
*************************** 1. row ***************************
Engine: MyISAM
Support: DEFAULT
Comment: Default engine as of MySQL 3.23 with great performance
*************************** 2. row ***************************
Engine: MEMORY
Support: YES
Comment: Hash based, stored in memory, useful for temporary tables
*************************** 3. row ***************************
Engine: InnoDB
Support: YES
Comment: Supports transactions, row-level locking, and foreign keys
*************************** 4. row ***************************
Engine: BerkeleyDB
Support: NO
Comment: Supports transactions and page-level locking
*************************** 5. row ***************************
Engine: BLACKHOLE
Support: NO
Comment: /dev/null storage engine (anything you write to it disappears)
*************************** 6. row ***************************
Engine: EXAMPLE
Support: NO
Comment: Example storage engine
*************************** 7. row ***************************
Engine: ARCHIVE
Support: YES
Comment: Archive storage engine
*************************** 8. row ***************************
Engine: CSV
Support: NO
Comment: CSV storage engine
*************************** 9. row ***************************
Engine: ndbcluster
Support: NO
Comment: Clustered, fault-tolerant, memory-based tables
*************************** 10. row ***************************
Engine: FEDERATED
Support: NO
Comment: Federated MySQL storage engine
*************************** 11. row ***************************
Engine: MRG_MYISAM
Support: YES
Comment: Collection of identical MyISAM tables
*************************** 12. row ***************************
Engine: ISAM
Support: NO
Comment: Obsolete storage engine
12 rows in set (0.00 sec)
xayzmb 2006-07-28
  • 打赏
  • 举报
回复
执行下面的操作也不行
create table T(
n varchar(10) not null default '')
type = innodb

总之
不能建立type = innodb 格式的表
xayzmb 2006-07-28
  • 打赏
  • 举报
回复
是数据库安装有问题吗?
我在另一台机子上操作正常呀

56,875

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧