Jump to content

Featured Replies

How to grab all the tables which are using MyISAM storage engine?

SELECT CONCAT('ALTER TABLE ', TABLE_SCHEMA, '.', TABLE_NAME,' ENGINE=InnoDB;')
FROM Information_schema.TABLES WHERE TABLE_SCHEMA = 'DBNAME' AND ENGINE = 'MyISAM' AND TABLE_TYPE = 'BASE TABLE'

Where DBNAME is the database name, then copying all the output queries you've to run in console and hit CTRL+Enter

Done! hope that helps :)

  • 2 месяца спустя...
2 hours ago, Desti said:

Do

ALTER TABLE `table name` ENGINE = INNODB;

for all tables manually. It blocking operations and on large tables can take a long time (forum will stop responding). 

Doing it manually is a headache, I have a big database and the SQL query I used worked just fine without any errors of sorts. Probably he/she's doing something wrong which has resulted in an error.

@LoveHate What's the size of your database?

1 hour ago, Desti said:

OMG..

you haven't completely copied the strings

Like I said previously, he might have done something wrong which caused the error.

1 hour ago, LoveHate said:

For me, the output is displayed like this.

What is the problem that does not show the continuation of the string completely?

Follow and fix like this

image.png.7e8f8b7cd156962716d3ed035ea0f891.png

image.thumb.png.21383fff42741a238e7933e14947bc69.png

image.png.450ecf2a6778ebc328c921372aa749ae.png

Then you know what you've to do.

Next step would be; well, In most scenarios you can copy the above result to the notepad and then checking and confirming if all is well and at last run the resulted queries and you'll see a successful operation message.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.