Like most of you know MyISAM is now nowhere good as InnoDB and it will only cause lower performance in term of write/read of large databases.
I run a separate server only for SQL database and had to change all tables to InnoDB due to poor performance.
This boosted performance for over 150% in my case.
In SQL run the following code:
Change name_of_your_db with your database name.
Now, the output will show you a list of all tables with commands like ALTER `announce` ENGINE =...
Copy all of them and run the following code:
After that, you should have successfully swapped from MyISAM to InnoDB engine.
I run a separate server only for SQL database and had to change all tables to InnoDB due to poor performance.
This boosted performance for over 150% in my case.
In SQL run the following code:
SET @DATABASE_NAME = 'name_of_your_db';
SELECT CONCAT('ALTER TABLE `', table_name, '` ENGINE=InnoDB;') AS sql_statements
FROM information_schema.tables AS tb
WHERE table_schema = @DATABASE_NAME
AND `ENGINE` = 'MyISAM'
AND `TABLE_TYPE` = 'BASE TABLE'
ORDER BY table_name DESC;Change name_of_your_db with your database name.
Now, the output will show you a list of all tables with commands like ALTER `announce` ENGINE =...
Copy all of them and run the following code:
USE `your_database_name`;
paste here all the tables you got from the previous code.
// remove ";" from the last ALTER input.After that, you should have successfully swapped from MyISAM to InnoDB engine.
