1 查看系统支持的存储引擎

show engines;

2 查看表使用的存储引擎

两种方法:

a、show table status from db_name where name='table_name';

b、show create table table_name;

如果显示的格式不好看,可以用\g代替行尾分号

有人说用第二种方法不准确,我试了下,关闭掉原先默认的Innodb引擎后根本无法执行show create table table_name指令,因为之前建的是Innodb表,关掉后默认用MyISAM引擎,导致Innodb表数据无法被正确读取。

3 修改表引擎方法

alter table table_name engine=innodb;

4 关闭Innodb引擎方法

关闭mysql服务: net stop mysql

找到mysql安装目录下的my.ini文件:

找到default-storage-engine=INNODB 改为default-storage-engine=MYISAM

找到#skip-innodb 改为skip-innodb

启动mysql服务:net start mysql

 

转自:http://www.linuxidc.com/Linux/2012-10/72884.htm

相关文章:

  • 2021-12-26
  • 2021-12-01
  • 2022-01-24
  • 2021-08-09
  • 2021-09-19
  • 2022-12-23
  • 2022-01-29
  • 2021-11-16
猜你喜欢
  • 2021-06-13
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
  • 2021-05-20
相关资源
相似解决方案