![]() |
MyISAM 2 InnoDB - Changes tables engine from MyISAM to InnoDB
1 Attachment(s)
After reading Anders is blog: Part 1 vB4mance: Helping communities grow, performance data model changes in vB 4.0 Thanks Anders, I've decided to make a simple product to bring the power of InnoDB to anyone who wants it.
Just import the product and go to Maintenance->Update Counters and scroll down, more down, then you'll find Change tables engine to InnoDB It can be used with 3.5 3.6 3.7 3.8 and 4.0, and I don't know if I should start a new thread in the "vBulletin 4.0 Add-ons". Please make sure to back-up your database before doing this. Enjoy. |
Thank you! I'll wait to see if its functioning properly. Don't want my db to become corrupted.
|
There are the advantages?
|
...
|
How are you getting around the search issue?
Quote:
|
<a href="http://www.yqed.com/mysql-storage-myisam-innodb-explained/" target="_blank">http://www.yqed.com/mysql-storage-my...odb-explained/</a>
This is a good read. |
Quote:
actuality, I may not need to skip any table, as MySQL well refuse to convert any table with FULLTEXT inside it. |
Quote:
http://www.mysqlperformanceblog.com/...sam-to-innodb/ |
I have a few production systems which use innodb (the smallest is a 400gb reporting dbms). So far I only have two issues with them and I'm not sure how that would translate to vb usage: the resource overhead seems significantly higher for innodb, and , when necessary, innodb data recovery has a global impact.
resource overhead is an issue on my non-commercial vb system because i don't use a dedicated server and the demands of ajax database access alone kill it even using myisam. the data recovery issue is more significant for me: when i have encountered a data structure corruption error (and it's not that frequent an occurrence; it only happened once in 2009) , the entire innodb database instance simply will not come up until the issue is addressed. using myisam only the affected table(s) becomes unusable (not having foreign key constraints you just don't have the data integrity issues associated with foreign key violations), which makes recovery a simple matter of dropping the structure and reloading it from the most recent backup. since the entire innodb instance will not load when corruption is detected, recovering from a backup becomes unfeasible as reloading all 400GB of table data simply takes too long, so i employ snap mirroring with local protection (dbms redundancy). without these resources, i can't see using innodb with anything over 25gb. i would prefer to use oracle 10/11g for such systems, and as Oracle now owns innodb that's probably going to become the formal migration path over time, but i'll wait for oracle to add similar administrative functionality to innodb before i use it for larger databases. |
gmerin!, haven't you tried to use "innodb_file_per_table"? No? Then you should read this one:
http://www.mysqlperformanceblog.com/...zation-basics/ |
thank you iwill try
|
thank you
no needed to be installed after done ?! |
Works on 4.2 thanks :)
|
how to convert back?
|
1 Attachment(s)
Yeah it would be nice if this could be reversed but I don't think we are going to get any reply for this
Edit: I just had a go at reversing this by just swapping the names in the xml file and I think it worked OK, just make sure you backup your database first in case anything goes wrong, I am not a coder so if anyone want to have another go at this and make a proper one feel free, just wanted to give the option to reverse this for anyone who found this wasn't for them. |
Thanks. I was looking for something like this for a while, and for some reason I didn't find this before. I will do some tests and post here is the performance of our forum increased or not.
|
With our very busy forums, converting to InnoDB made the CPU load on our MySQL server to go throught he roof. I had to revert back to MyISAM.
|
how to convert back?
|
create file cv.php with content:
PHP Code:
PHP Code:
2 arg = convert TO 3 arg = show or no output (optional, default = false) 4 arg = test mode. if set to true - no changes in DB (optional, default = false) close forum make Data Base backup upload file to forum root and execute in browser confirm chages in DB delete file open forum |
A little update of the script on vb 4.2.x:
PHP Code:
Aldo this script should be run in AdminCP, not the root! And if you have some big tables you should manually convert them trough shell console and after that run the script. Regards! |
All times are GMT. The time now is 07:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|