如何将MyISAM转换为InnoDB [英] How to convert MyISAM to InnoDB

查看:252
本文介绍了如何将MyISAM转换为InnoDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MySQL 5,上周我的数据库出现了一些损坏.我的Web主机上的技术人员设法保存了该表,但是这些表都已从原始InnoDB转换为MyISAM.当前,我的电子商务应用程序中的某些功能不起作用.

I'm using MySQL 5, and my database experienced some corruption last week. The technicians at my web host managed to save it, but the tables are all converted from the original InnoDB to MyISAM. Currently, some functions in my eCommerce application does not work.

我是否有一种简单的方法可以将它们再次转换回InnoDB?我在phpMyAdmin中找不到任何内容.我需要编写一个PHP脚本吗?

Is there a easy way for me to convert them back to InnoDB again? I can't find anything in phpMyAdmin. Do I need to write a PHP script?

谢谢.

推荐答案

您可以运行以下查询:

ALTER TABLE table_name ENGINE = InnoDB;

在所有表格上

这篇关于如何将MyISAM转换为InnoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆