如何在 XAMPP 中将默认存储引擎设置为 InnoDB [英] How to set the default storage engine to InnoDB in XAMPP
问题描述
如何在 Linux XAMPP 1.7.3 中将 default-storage-engine
设置为 InnoDB?
How do I set the default-storage-engine
to InnoDB in Linux XAMPP 1.7.3?
推荐答案
最简单的方法就是进入mysql的配置文件(windows中的my.ini,Linux中的my.cnf)然后添加:
The easiest way is just to go to the mysql config file (my.ini in windows, my.cnf in Linux) and just add this:
[mysqld]
default-storage-engine=InnoDB
这假设您已启用 InnoDB
,这是另一个主题,但有 很多答案 如何做到这一点.您可以随时在 XAMPP 上检查 phpMyAdmin 中的默认存储引擎:只需单击服务器,然后单击引擎,然后单击特定引擎(如 MyISAM),然后查看是否显示 MyISAM 是默认存储引擎MySQL 服务器
.
This assumes that you have enabled InnoDB
, which is another topic, but there are plenty of answers on how to do this. You can always check the default storage engine in phpMyAdmin on XAMPP: Just click on the server, then on engines, then on a particular engine (like MyISAM), and then see if it says MyISAM is the default storage engine on this MySQL server
.
这篇关于如何在 XAMPP 中将默认存储引擎设置为 InnoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!