If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > How to make InnoDB the default??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-25-04, 22:23
deanhiller deanhiller is offline
Registered User
 
Join Date: Sep 2004
Posts: 3
Talking How to make InnoDB the default??

I need to make InnoDB the default so type=InnoDB or Engine=InnoDB is not needed on every table create. How can this be done?
thanks,
dean
Reply With Quote
  #2 (permalink)  
Old 10-26-04, 00:07
snorp snorp is offline
Registered User
 
Join Date: Apr 2004
Location: Europe->Sweden->Stockholm
Posts: 71
Set the variable table_type to InnoDB. You can use --default-table-type=InnoDB on the command line to the MySQL server or you can set it from the client:
Code:
SET GLOBAL table_type=InnoDB;
I guess you can also add the line
Code:
table_type=InnoDB
to the configuration file in the [mysqld] section
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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