Now that are databases are created and in place, it's time to start configuring the plugin to handle the heavy lifting. We've got 5 separate areas to configure here (6 if you're using VIP databases)
1) Line 10: Change the DB_SCALING to however many databases you're using (16, 256, or 4096)
2) Line 16: Don't let this scare you. It just needs your server's IP address. 3) Line 25: Provide the same name you assigned for your global database in Step 2. example 'dbname_global'
I think item 3) above is not correct. Should that be line 64 instead?
Now that are databases are created and in place, it's time to start configuring the plugin to handle the heavy lifting. We've got 5 separate areas to configure here (6 if you're using VIP databases)
1) Line 10: Change the DB_SCALING to however many databases you're using (16, 256, or 4096)
2) Line 16: Don't let this scare you. It just needs your server's IP address. 3) Line 25: Provide the same name you assigned for your global database in Step 2. example 'dbname_global'
I think item 3) above is not correct. Should that be line 64 instead?
9603 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Pro
—
21st November 2011 (6 months ago)
#
Hiya!
This error is because your server configuration is stopping the script from running for as long as it needs to in order to complete the task.
You'll need to change the max_execution_time setting in your PHP configuration in order to allow the script to complete. You might need to ask your hosting company to do this for you.
Changed max_execution_time to 3600 for this exercise and now running on 256 databases. The site is a lot more responsive. (it took about a day to move the blogs)
Is it possible to now move to 4096 databases from 256 databases?
Same procedure?
Please don't forget to review the Installation Instructions as per my opening observation at the top of this thread.
9603 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Pro
—
22nd November 2011 (6 months ago)
#
Did you set your global table as per step 3 instructions? Line 25 is right, it's the line that shows you the example - you just add your entry below that.
Responses (11)
Sales & Support Pro — 21st November 2011 (6 months ago) #
Hiya!
This error is because your server configuration is stopping the script from running for as long as it needs to in order to complete the task.
You'll need to change the max_execution_time setting in your PHP configuration in order to allow the script to complete. You might need to ask your hosting company to do this for you.
Thanks,
Phil
Member — 21st November 2011 (6 months ago) #
Thanks Phil,
You are responding to the second, Fatal Error, right?
What about the first error:
mysql_free_result(): supplied argument is not a valid MySQL result resource.
Anything to worry about?
Please confirm the set-up instructions when you have a moment.
Many thanks
Ralf
Member — 22nd November 2011 (6 months ago) #
Changed max_execution_time to 3600 for this exercise and now running on 256 databases. The site is a lot more responsive. (it took about a day to move the blogs)
Is it possible to now move to 4096 databases from 256 databases?
Same procedure?
Please don't forget to review the Installation Instructions as per my opening observation at the top of this thread.
Thanks
R.
Sales & Support Pro — 22nd November 2011 (6 months ago) #
Did you set your global table as per step 3 instructions? Line 25 is right, it's the line that shows you the example - you just add your entry below that.
Member — 22nd November 2011 (6 months ago) #
Line 25 is:
add_global_table('affiliatedata');this is a function call I believe and refers to a table "global table", whereas the instruction refers to a "global database" .
I don't think this is correct. Tables and databases are not the same thing.
Please check again.
Many thanks
Ralf
Member — 22nd November 2011 (6 months ago) #
Member — 22nd November 2011 (6 months ago) #
sorry, bump, we need to get this sorted - in case we got it wrong and *BLOW THINGS UP* :-)
thanks
also :
Member — 22nd November 2011 (6 months ago) #
some screen shots
Sales & Support Pro — 23rd November 2011 (6 months ago) #
There is a helpful overview of moving from 256 to 4096 from a member here: http://premium.wpmudev.org/forums/topic/example-of-how-i-moved-256-to-4096
Member — 24th January 2012 (4 months ago) #
Hello,
I´ve clean new installation and i need 16 databases. What i have to add to line 25 ->
add_global_table('what_is_this');?I dowloaded newest version of multi-db but there is no db-config.php file. I have to use older version where the dp-config.php is included, right?
Sales & Support Pro — 25th January 2012 (3 months ago) #
Hiya @janstu78, could you start a new thread for your issue please? It'll really help us to assist you better. Thanks!
Become a member