I have a MySQL server which has it's default storage engine set as InnoDB. I have a project which requires the tables in the database to be MyISAM. I'd like to create my database with a flag to set the default storage engine to be MyISAM. Is this possible without changing the server default and also without manually specifying each table?
InnoDB is the default and most general-purpose storage engine, and Oracle recommends using it for tables except for specialized use cases. (The CREATE TABLE statement in MySQL 8.0 creates InnoDB tables by default.)
There are two types of engines in MySQL: transactional and non-transactional. InnoDB is the default engine for MySQL 5.5 and above versions.
EDITED: Actually, yes - a global variable default-storage-engine can be changed only for a session, so
SET storage_engine=MYISAM;
SET table_type=BDB;
will affect only the current session. See here for details.
see this here: http://forums.mysql.com/read.php?21,26193,26193 you can change your database to MyISAM -- I'm guessing you're only reading from the tables in the database (otherwise if you have read/write transactions InnoDB is the better choice).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With