Cant create InnoDB tables

This is a discussion on Cant create InnoDB tables within the MySQL Database forums, part of the Database Forums category; Hi Ive just installed MySQL from source (5.0.45) but I cant seem to create any InnoDB tables?? mysql&...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-20-2007
Suk
 
Posts: n/a
Default Cant create InnoDB tables

Hi

Ive just installed MySQL from source (5.0.45) but I cant seem to
create any InnoDB tables??

mysql> create table mytable (
-> data varchar(10)
-> ) ENGINE = InnoDB;


mysql> show table status;
+---------+--------+---------+------------+------+----------------
+-------------+-----------------+--------------+-----------
+----------------+---------------------+---------------------
+------------+-------------------+----------+----------------+---------
+
| Name | Engine | Version | Row_format | Rows | Avg_row_length |
Data_length | Max_data_length | Index_length | Data_free |
Auto_increment | Create_time | Update_time |
Check_time | Collation | Checksum | Create_options | Comment |
+---------+--------+---------+------------+------+----------------
+-------------+-----------------+--------------+-----------
+----------------+---------------------+---------------------
+------------+-------------------+----------+----------------+---------
+
| mytable | MyISAM | 10 | Dynamic | 0 | 0
| 0 | 281474976710655 | 1024 | 0 |
NULL | 2007-07-20 10:24:00 | 2007-07-20 10:23:59 | NULL |
latin1_swedish_ci | NULL | | |
+---------+--------+---------+------------+------+----------------
+-------------+-----------------+--------------+-----------
+----------------+---------------------+---------------------
+------------+-------------------+----------+----------------+---------
+
1 row in set (0.00 sec)


What conditions need to be true to be able to create InnoDB tables?
Are there any special build conditions?

Reply With Quote
  #2 (permalink)  
Old 07-20-2007
Axel Schwenke
 
Posts: n/a
Default Re: Cant create InnoDB tables

Suk <sukesh@zoom.co.uk> wrote:
> Hi
>
> Ive just installed MySQL from source (5.0.45) but I cant seem to
> create any InnoDB tables??
>
> mysql> create table mytable (
> -> data varchar(10)
> -> ) ENGINE = InnoDB;
>
> mysql> show table status;

(was created as MyISAM)

mysql> create table mytable (data varchar(10)) ENGINE = InnoDB;
Query OK, 0 rows affected, 1 warning (0,01 sec)

mysql> show warnings;
+---------+------+-------------------------------------------------+
| Level | Code | Message |
+---------+------+-------------------------------------------------+
| Warning | 1266 | Using storage engine MyISAM for table 'mytable' |
+---------+------+-------------------------------------------------+

mysql> show engines;
+------------+----------+----------------------------------------------------------------+
| Engine | Support | Comment |
+------------+----------+----------------------------------------------------------------+
....
| InnoDB | DISABLED | Supports transactions, row-level locking, and foreign keys |
....

http://dev.mysql.com/doc/refman/5.0/...ate-table.html

"If a storage engine is specified that is not available, MySQL uses the
default engine instead. Normally, this is MyISAM."

> What conditions need to be true to be able to create InnoDB tables?
> Are there any special build conditions?


One can compile MySQL w/o InnoDB. Or just put skip-innodb in my.cnf.



XL
--
Axel Schwenke, Support Engineer, MySQL AB

Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
MySQL User Forums: http://forums.mysql.com/
Reply With Quote
  #3 (permalink)  
Old 07-20-2007
lark
 
Posts: n/a
Default Re: Cant create InnoDB tables

Axel Schwenke wrote:
> Suk <sukesh@zoom.co.uk> wrote:
>> Hi
>>
>> Ive just installed MySQL from source (5.0.45) but I cant seem to
>> create any InnoDB tables??
>>
>> mysql> create table mytable (
>> -> data varchar(10)
>> -> ) ENGINE = InnoDB;
>>
>> mysql> show table status;

> (was created as MyISAM)
>
> mysql> create table mytable (data varchar(10)) ENGINE = InnoDB;
> Query OK, 0 rows affected, 1 warning (0,01 sec)
>
> mysql> show warnings;
> +---------+------+-------------------------------------------------+
> | Level | Code | Message |
> +---------+------+-------------------------------------------------+
> | Warning | 1266 | Using storage engine MyISAM for table 'mytable' |
> +---------+------+-------------------------------------------------+
>
> mysql> show engines;
> +------------+----------+----------------------------------------------------------------+
> | Engine | Support | Comment |
> +------------+----------+----------------------------------------------------------------+
> ...
> | InnoDB | DISABLED | Supports transactions, row-level locking, and foreign keys |
> ...
>
> http://dev.mysql.com/doc/refman/5.0/...ate-table.html
>
> "If a storage engine is specified that is not available, MySQL uses the
> default engine instead. Normally, this is MyISAM."
>
>> What conditions need to be true to be able to create InnoDB tables?
>> Are there any special build conditions?

>
> One can compile MySQL w/o InnoDB. Or just put skip-innodb in my.cnf.
>
>
>
> XL
> --
> Axel Schwenke, Support Engineer, MySQL AB
>
> Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
> MySQL User Forums: http://forums.mysql.com/


what do you see when your run this cmd:
show engines;
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:35 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0