472,122 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,122 software developers and data experts.

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 2018
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.