MySQL的系统变量TABLE_TYPE不起作用变量、不起作用、系统、MySQL

2023-09-11 08:24:54 作者:红杏不出墙,坚决拽出来

我无法设置系统变量TABLE_TYPE。当我尝试这样做,我碰到下面的错误。

I am unable to set the system variable table_type. When I try to do so I get the following error.

mysql> SET table_type=InnoDB;
ERROR 1193 (HY000): Unknown system variable 'table_type'

我看到TABLE_TYPE当我做了SHOW变量未列出。这是一个安装问题?

I see that "table_type" is not listed when I do a "SHOW VARIABLES". Is this a setup issue?

要安装mysql我只是做了一个须藤yum的安装mysql的mysql服务器的mysql-库在Amazon EC2实例。

To install mysql I just did a "sudo yum install mysql mysql-server mysql-libs" on Amazon EC2 instance.

推荐答案

从的文档:

此变量辗转于MySQL的5.5.3。使用storage_engine代替。

This variable was removed in MySQL 5.5.3. Use storage_engine instead.

而这又说道:

这个变量是pcated从MySQL 5.5.3的德$ P $。使用default_storage_engine代替。

This variable is deprecated as of MySQL 5.5.3. Use default_storage_engine instead.

因此​​,你应该使用 SET default_storage_engine = InnoDB的,这FWIW是因为MySQL的5.5.5默认的。

Therefore you should use SET default_storage_engine=InnoDB, which FWIW is the default since MySQL 5.5.5.