469,128 Members | 1,611 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,128 developers. It's quick & easy.

how to specify the engine type during creation of a database?

304 100+
I would like to know whether its possible to specify the default engine type during the creation of a database.

Tried this...
create database main character set = utf8 collate=utf8_general_ci engine=innodb;
but didn't work.
Apr 17 '07 #1
3 1973
masdi2t
37
I would like to know whether its possible to specify the default engine type during the creation of a database.

Tried this...
create database main character set = utf8 collate=utf8_general_ci engine=innodb;
but didn't work.

see ur system variables
SHOW VARIABLES LIKE '%default%'

find default_storage system variable and than change it to engine type u like using SET command or just write it on ur my.cnf/my.ini file.

rgds.
Apr 19 '07 #2
Hi,

We can only change the character set and collations at the time of database creation.

If u want to change the default storage engine for the tables in the database.
Then after creating the database, use the below query

SET table_type = '<The Storage Engine Name which has to be set as default';


Thanks,
Scarlet


I would like to know whether its possible to specify the default engine type during the creation of a database.

Tried this...
create database main character set = utf8 collate=utf8_general_ci engine=innodb;
but didn't work.
Apr 23 '07 #3
masdi2t
37
see ur system variables
SHOW VARIABLES LIKE '%default%'

find default_storage system variable and than change it to engine type u like using SET command or just write it on ur my.cnf/my.ini file.

rgds.
i'm sorry, not default_storage, but storage_engine
:D
Apr 24 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by raf_z | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.