Xontero Опубликовано 2 января, 2022 Поделиться Опубликовано 2 января, 2022 hi guys can someone help me to convert MyISAM to InnoDB? I want a fast and secure way Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Orpheus Опубликовано 2 января, 2022 Поделиться Опубликовано 2 января, 2022 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 turk, by_ix, Zero108 и 1 другой 4 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Xontero Опубликовано 2 января, 2022 Автор Поделиться Опубликовано 2 января, 2022 Bro I did it before and my forum down. Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Orpheus Опубликовано 2 января, 2022 Поделиться Опубликовано 2 января, 2022 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 Xontero 1 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Xontero Опубликовано 2 января, 2022 Автор Поделиться Опубликовано 2 января, 2022 Thanks bro I'll try it and inform you. Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Orpheus Опубликовано 3 января, 2022 Поделиться Опубликовано 3 января, 2022 20 hours ago, LoveHate said: Thanks bro I'll try it and inform you. Sure thing, good luck Xontero 1 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Orpheus Опубликовано 28 марта, 2022 Поделиться Опубликовано 28 марта, 2022 LoveHate Did it work? Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Xontero Опубликовано 28 марта, 2022 Автор Поделиться Опубликовано 28 марта, 2022 Orpheus no bro. after use that my forum is down Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Orpheus Опубликовано 28 марта, 2022 Поделиться Опубликовано 28 марта, 2022 7 hours ago, LoveHate said: Orpheus no bro. after use that my forum is down Bruh, I used that SQL query recently and it worked just fine. I can help if you want to Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Desti Опубликовано 28 марта, 2022 Поделиться Опубликовано 28 марта, 2022 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). by_ix 1 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Xontero Опубликовано 28 марта, 2022 Автор Поделиться Опубликовано 28 марта, 2022 Desti Я сделал этот метод, но после окончания работы моя ассоциация развалилась Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Desti Опубликовано 28 марта, 2022 Поделиться Опубликовано 28 марта, 2022 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 by_ix и Orpheus 2 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Orpheus Опубликовано 28 марта, 2022 Поделиться Опубликовано 28 марта, 2022 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? Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Desti Опубликовано 28 марта, 2022 Поделиться Опубликовано 28 марта, 2022 (изменено) 34 минуты назад, Orpheus сказал: is a headache Headache is convert to utf8mb4 Manually.. Изменено 28 марта, 2022 пользователем Desti by_ix 1 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Orpheus Опубликовано 29 марта, 2022 Поделиться Опубликовано 29 марта, 2022 9 hours ago, Desti said: Headache is convert to utf8mb4 Manually.. Perhaps! Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Xontero Опубликовано 29 марта, 2022 Автор Поделиться Опубликовано 29 марта, 2022 13 hours ago, Orpheus said: @LoveHate What's the size of your database? 10GB Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Orpheus Опубликовано 29 марта, 2022 Поделиться Опубликовано 29 марта, 2022 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 by_ix и Xontero 1 1 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Xontero Опубликовано 29 марта, 2022 Автор Поделиться Опубликовано 29 марта, 2022 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 Then I selected and copied all the output tables and re-entered them in the console section but I got below error: Spoiler Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Desti Опубликовано 29 марта, 2022 Поделиться Опубликовано 29 марта, 2022 (изменено) OMG.. you haven't completely copied the strings ) Every string must edned with ENGINE=InnoDB; not ENGINE=Inn.. Изменено 29 марта, 2022 пользователем Desti Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Xontero Опубликовано 29 марта, 2022 Автор Поделиться Опубликовано 29 марта, 2022 41 minutes ago, Desti said: ENGINE=Inn For me, the output is displayed like this. What is the problem that does not show the continuation of the string completely? Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Desti Опубликовано 29 марта, 2022 Поделиться Опубликовано 29 марта, 2022 26 минут назад, LoveHate сказал: the output is displayed like this You should have saved the query result instead of copying it from the screen. Xontero 1 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Orpheus Опубликовано 29 марта, 2022 Поделиться Опубликовано 29 марта, 2022 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 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. by_ix и Xontero 2 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Orpheus Опубликовано 29 марта, 2022 Поделиться Опубликовано 29 марта, 2022 (изменено) Like this CTRL + Enter (Windows OS) to execute all the queries you'll generate. Goodluck Изменено 29 марта, 2022 пользователем Orpheus Xontero и by_ix 1 1 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Orpheus Опубликовано 29 марта, 2022 Поделиться Опубликовано 29 марта, 2022 @LoveHate Let us know if you get any error or if you're stuck. We'll help as much as we can Do let us know if you're successful in converting the tables. Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Xontero Опубликовано 30 марта, 2022 Автор Поделиться Опубликовано 30 марта, 2022 Orpheus I finally do that 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 by_ix 1 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Рекомендуемые сообщения
Присоединяйтесь к обсуждению
Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.
Примечание: Ваш пост будет проверен модератором, прежде чем станет видимым.