MyBB Tutorials

Upgrading Tables To Innodb

Submitted by Oxygen, , Thread ID: 2521

Thread Closed
Oxygen
<div class="postbit-usertitle">
Prime
Level:
0
Reputation:
35
Posts:
608
Likes:
63
Credits:
1.47K
05-04-2015, 05:12 PM
This post was last modified: 16-04-2015, 05:28 PM by Oxygen
#1
This script will convert all your tables to the much better Innodb storage engine than MyISAM. This is very helpful for larger forums with many users online. If you do not have MySQL version 5.6 or higher you have three choices to make:
1) Upgrade to MySQL 5.6 or higher ( you may need to contact your host for this. )
2) Keep Full Text Index searches and let the mybb_posts and mybb_threads tables stay as MyISAM
3) Drop the index on message for the mybb_posts table and the index subject on the mybb_threads table.
Content locked
This content has been locked. Please login or register in order to unlock it.


Once the file is executed, you should delete it off your server.
[Image: UeTXrZ5.png]

RE: Upgrading Tables To Innodb

AndresXZ09
Closed Account
Level:
0
Reputation:
30
Posts:
1.22K
Likes:
139
Credits:
1.51K
10-04-2015, 12:57 AM
#2
So, if my host have MySQL 5.6 I just have to create a .php file, execute it and when done, just delete it?

RE: Upgrading Tables To Innodb

Blowjob
Closed Account
Level:
0
Reputation:
26
Posts:
2.16K
Likes:
189
Credits:
2.53K
16-04-2015, 01:21 AM
#3
If I remember correctly, InnoDB is TERRIBLE.

eats all your ram and shit

RE: Upgrading Tables To Innodb

Pulseeey
The Mandingo Man
Staff
Level:
0
Reputation:
208
Posts:
994
Likes:
159
Credits:
1.69K
16-04-2015, 02:02 AM
#4
16-04-2015, 01:21 AM
Hug Wrote:
If I remember correctly, InnoDB is TERRIBLE.

eats all your ram and shit

InnoDB is better for larger forums, which execute more queries etc.

Although if you're that big, chances are you use MariaDB or an alternative.

RE: Upgrading Tables To Innodb

AndresXZ09
Closed Account
Level:
0
Reputation:
30
Posts:
1.22K
Likes:
139
Credits:
1.51K
16-04-2015, 02:04 AM
#5
16-04-2015, 02:02 AM
Pulseeey Wrote:
16-04-2015, 01:21 AM
Hug Wrote:
If I remember correctly, InnoDB is TERRIBLE.

eats all your ram and shit

InnoDB is better for larger forums, which execute more queries etc.

Although if you're that big, chances are you use MariaDB or an alternative.

Is it possible to change from the default one to MariaDB?

RE: Upgrading Tables To Innodb

Pulseeey
The Mandingo Man
Staff
Level:
0
Reputation:
208
Posts:
994
Likes:
159
Credits:
1.69K
16-04-2015, 03:38 AM
#6
16-04-2015, 02:04 AM
AndresXZ09 Wrote:
16-04-2015, 02:02 AM
Pulseeey Wrote:
16-04-2015, 01:21 AM
Hug Wrote:
If I remember correctly, InnoDB is TERRIBLE.

eats all your ram and shit

InnoDB is better for larger forums, which execute more queries etc.

Although if you're that big, chances are you use MariaDB or an alternative.

Is it possible to change from the default one to MariaDB?

I've not really used MariaDB, I believe the table structures remain as MyISAM or InnoDB but I am not sure. I think it's just a quicker process? I don't even know. I just know it's quicker in some way.

MyBB can be used with, pretty sure HF used it at one point.

RE: Upgrading Tables To Innodb

Oxygen
<div class="postbit-usertitle">
Prime
Level:
0
Reputation:
35
Posts:
608
Likes:
63
Credits:
1.47K
OP
16-04-2015, 05:28 PM
#7
16-04-2015, 01:15 AM
Ping Wrote:
10-04-2015, 12:57 AM
AndresXZ09 Wrote:
So, if my host have MySQL 5.6 I just have to create a .php file, execute it and when done, just delete it?

Yep, also thanks for this. I tried it and it worked great. Also, you might want to add "hide" tags to your post so it doesn't get leeched.

Added Hide Tags.
[Image: UeTXrZ5.png]

RE: Upgrading Tables To Innodb

Akay
We are!
Level:
0
Reputation:
28
Posts:
946
Likes:
109
Credits:
2.05K
25-04-2015, 10:36 PM
#8
16-04-2015, 02:04 AM
AndresXZ09 Wrote:
16-04-2015, 02:02 AM
Pulseeey Wrote:
16-04-2015, 01:21 AM
Hug Wrote:
If I remember correctly, InnoDB is TERRIBLE.

eats all your ram and shit

InnoDB is better for larger forums, which execute more queries etc.

Although if you're that big, chances are you use MariaDB or an alternative.

Is it possible to change from the default one to MariaDB?

Yeah you can use MariaDB instead of MySQL.

RE: Upgrading Tables To Innodb

AndresXZ09
Closed Account
Level:
0
Reputation:
30
Posts:
1.22K
Likes:
139
Credits:
1.51K
25-04-2015, 10:38 PM
#9
@Kewl is it better than InnoDB or MySQL?

RE: Upgrading Tables To Innodb

Akay
We are!
Level:
0
Reputation:
28
Posts:
946
Likes:
109
Credits:
2.05K
25-04-2015, 10:39 PM
This post was last modified: 25-04-2015, 10:39 PM by Akay
#10
25-04-2015, 10:38 PM
AndresXZ09 Wrote:
@Kewl is it better than InnoDB or MySQL?

I prefer MariaDB than InnoDB and MySQL.

Users browsing this thread: 1 Guest(s)