ERROR 1286 (42000): Unknown table engine 'InnoDB'

2016-6-14 孤独求学人 Mysql


今天在操作数据的的时候,突然提示以下错误:
ERROR 1286 (42000): Unknown table engine 'InnoDB'
mysql> select version();
+-----------+
| version() |
+-----------+
| 5.1.57    |
+-----------+
1 row in set (0.01 sec)
mysql> show engines;
+------------+---------+-----------------------------------------------------------+--------------+------+------------+
| Engine     | Support | Comment                                                   | Transactions | XA   | Savepoints |
+------------+---------+-----------------------------------------------------------+--------------+------+------------+
| CSV        | YES     | CSV storage engine                                        | NO           | NO   | NO         |
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                     | NO           | NO   | NO         |
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables | NO           | NO   | NO         |
| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance    | NO           | NO   | NO         |
+------------+---------+-----------------------------------------------------------+--------------+------+------------+
4 rows in set (0.00 sec) mysql> show variables like 'have_innodb%'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | have_innodb | NO | +---------------+-------+ 1 row in set (0.00 sec) 至此发现数据库不支持INNOD引擎!!! mysql> show variables like '%dir%';

阅读全文>>

标签: mysql show enginx InnoDB

评论(0) 浏览(6852)

mysql 为用户添加资源限制

2014-3-22 孤独求学人 Mysql

在使用MySQL中Grant新增用户的时候,为用户添加资源限制

在MySQL中,你可以为单独的用户设置MySQL的资源使用限制。可用的资源限制如下:

阅读全文>>

标签: grant mysql show

评论(0) 浏览(2659)

查看mysql表结构信息

2013-7-18 孤独求学人 Mysql

一、简单描述表结构,字段类型
desc tabl_name; describe columns
显示表结构,字段类型,主键,是否为空等属性,但不显示外键和字段的注释。
二,查看表生成的DDL
show create table 表名;
这个命令虽然显示起来不是太容易看, 这个不是问题可以用\G来结尾,使得结果容易阅读;该命令把创建表的DDL显示出来,于是表结构、类型,外键,备注全部显示出来了。我比较喜欢这个命令:输入简单,显示结果全面。
三,查询表中列的注释信息
use  information_schema
select * from columns where  table_name = '表名' ;
四、查看表的注释
select table_name,table_comment frominformation_schema.tables  where table_schema = 'db' and table_name='表名'
五,只查询列名和注释
select  column_name, column_comment from information_schema.columnswhere table_schema ='db'  and table_name = '表名' ;

标签: linux mysql select desc use show

评论(0) 浏览(4485)

Powered by emlog 豫ICP备15004178号-1