Jump to content

Featured Replies

comment_176192

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 :)

comment_176199

You have to generate the queries first using the above and then run them in MySQL CLI(Console).

I did it for my forum the same way. I used phpMyAdmin console inside the same database where I had most of the database tables in MyISAM

  • 2 месяца спустя...
comment_179133

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). 

comment_179140

Your DB must be configured for innodb. 

Check 

innodb_buffer_pool_size = (50% of memory)G 
innodb_log_file_size = 256M
innodb_flush_log_at_trx_commit = 1
innodb_flush_method = O_DIRECT

comment_179143
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?

comment_179144
34 минуты назад, Orpheus сказал:

is a headache

Headache is convert to utf8mb4 :) Manually..

Edited by Desti

comment_179175
2 hours ago, LoveHate said:

10GB

That's probably not the actual size of the database. Run MySQL optimization to reduce the size.

Below is how you should run the Query if you're using phpMyAdmin

image.png.7be352807b9b7ea703a84629555fb426.png

  • Author
comment_179183

Orpheus bro I'm not familiar with database but I try this way

well in first step I run your query in console section and after that I see the below tables:

Spoiler

a.png.3583d920e429c680f47b4478e0204fb9.png

Then I selected and copied all the output tables and re-entered them in the console section but I got below error:

Spoiler

s.png.beafb8dd5c013f50690d6fa9fdf6416d.png

 

comment_179184

OMG..

you haven't completely copied the strings )

 

Every string must edned with ENGINE=InnoDB;

not ENGINE=Inn..

 

Edited by Desti

comment_179202
26 минут назад, LoveHate сказал:

the output is displayed like this

You should have saved the query result instead of copying it from the screen.

comment_179207
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.

  • Author
comment_179271

Orpheus I finally do that :bp::bp::bp::bp::bp::bp::bp:

One question, after copying the output and running it into the console, I got below message. Is this message successful?

In addition, no database type error was observed in the support section of the admin

 

so so thanks again

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.