MySQL的系统变量TABLE_TYPE不起作用 [英] mysql system variable table_type doesn't work

查看:880
本文介绍了MySQL的系统变量TABLE_TYPE不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法设置系统变量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。使用<一个href="http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_storage_engine">storage_engine代替。

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

而这又说道:

这个变量是pcated从MySQL 5.5.3的德$ P $。使用<一个href="http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_default_storage_engine">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.

这篇关于MySQL的系统变量TABLE_TYPE不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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