[英]How to modify a storage engine from InnoDB to MyISAM using RightScale
I'm tring to modify the default storage engine from InnoDB to MyISAM on a 5.5 DB Parameter Group (for a RDS instance hosted in Amazon). 我想在5.5 DB参数组(对于亚马逊托管的RDS实例)中将默认存储引擎从InnoDB修改为MyISAM。 But I am unable to change, since the property shows up as non modifiable.
但我无法改变,因为该属性显示为不可修改。 How do I achieve this via RightScale or Amazon RDS
如何通过RightScale或Amazon RDS实现此目的
default_storage_engine string dynamic system InnoDB The default storage engine (table type). default_storage_engine字符串动态系统InnoDB默认存储引擎(表类型)。
There's 3 ways to set this. 设置此方法有3种方法。 2 set it for all sessions on server start-up and the third sets it for the current session.
2为服务器启动时的所有会话设置它,第三个为当前会话设置它。
--default-storage-engine=MYISAM
startup option --default-storage-engine=MYISAM
启动选项 default-storage-engine=MYISAM
option default-storage-engine=MYISAM
选项 SET storage_engine=MYISAM;
SET storage_engine=MYISAM;
I suspect one of the first two are the best so you don't accidentally end up without it set one session. 我怀疑前两个中的一个是最好的,所以如果没有设置一个会话,你不会意外地结束。 On Amazon RDS you need to set this via a DB Parameter Group .
在Amazon RDS上,您需要通过数据库参数组进行设置。
On RightScale you need to tune the Chef Cookbook . 在RightScale上,您需要调整Chef Cookbook 。 You should just need to set the default-storage-engine in my.cnf.erb.
您只需要在my.cnf.erb中设置default-storage-engine即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.