<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>WPMU DEV Community &#187; Topic: Problem With Multi-DB isntall</title>
		<link>http://premium.wpmudev.org/forums/topic/problem-with-multi-db-isntall</link>
		<description>WPMU DEV Community &#187; Topic: Problem With Multi-DB isntall</description>
		<language>en-US</language>
		<pubDate>Sat, 18 May 2013 22:19:06 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://premium.wpmudev.org/forums/search.php</link>
		</textInput>
		<atom:link href="http://premium.wpmudev.org/forums/rss/topic/problem-with-multi-db-isntall" rel="self" type="application/rss+xml" />

		<item>
			<title>Andrew on "Problem With Multi-DB isntall"</title>
			<link>http://premium.wpmudev.org/forums/topic/problem-with-multi-db-isntall#post-37619</link>
			<pubDate>Tue, 11 May 2010 18:23:57 +0000</pubDate>
			<dc:creator>Andrew</dc:creator>
			<guid isPermaLink="false">37619@http://premium.wpmudev.org/forums/</guid>
			<description><p>Hiya,</p>
<blockquote><p>but should i really have to add the old database user to all the new databases?</p></blockquote>
<p>You'll need to add the user to all of the new databases. 99% of the people who switch to Multi-DB don't change the MySQL user.</p>
<p>Thanks,<br />
Andrew
</p></description>
		</item>
		<item>
			<title>sjrenn on "Problem With Multi-DB isntall"</title>
			<link>http://premium.wpmudev.org/forums/topic/problem-with-multi-db-isntall#post-37542</link>
			<pubDate>Tue, 11 May 2010 06:43:55 +0000</pubDate>
			<dc:creator>sjrenn</dc:creator>
			<guid isPermaLink="false">37542@http://premium.wpmudev.org/forums/</guid>
			<description><p>Hmm, I'm getting the following error </p>
<p>Database Error: Access denied for user 'press111_wpmu'@'localhost' to database 'press111_c8'</p>
<p>This is the same thing that happened before.  The thing is though the user press111_wpmu is the user for my old database i used when i set up the wpmu in the first place.  </p>
<p>I added that user to press111_c4 and that seemed to work, but should i really have to add the old database user to all the new databases?  Shouldn't that be the new user i created for all of those databases?
</p></description>
		</item>
		<item>
			<title>sjrenn on "Problem With Multi-DB isntall"</title>
			<link>http://premium.wpmudev.org/forums/topic/problem-with-multi-db-isntall#post-37540</link>
			<pubDate>Tue, 11 May 2010 06:25:48 +0000</pubDate>
			<dc:creator>sjrenn</dc:creator>
			<guid isPermaLink="false">37540@http://premium.wpmudev.org/forums/</guid>
			<description><p>hey andrew all the information in the code has been edited to "fake" information
</p></description>
		</item>
		<item>
			<title>Andrew on "Problem With Multi-DB isntall"</title>
			<link>http://premium.wpmudev.org/forums/topic/problem-with-multi-db-isntall#post-37539</link>
			<pubDate>Tue, 11 May 2010 06:18:05 +0000</pubDate>
			<dc:creator>Andrew</dc:creator>
			<guid isPermaLink="false">37539@http://premium.wpmudev.org/forums/</guid>
			<description><p>I edited your post to remove your db pass. You definitely don't want someone grabbing that ;)</p>
<p>As for the problem, try switching out the IPs in your connection lines to 'localhost'.</p>
<p>Thanks,<br />
Andrew
</p></description>
		</item>
		<item>
			<title>sjrenn on "Problem With Multi-DB isntall"</title>
			<link>http://premium.wpmudev.org/forums/topic/problem-with-multi-db-isntall#post-37538</link>
			<pubDate>Tue, 11 May 2010 06:11:07 +0000</pubDate>
			<dc:creator>sjrenn</dc:creator>
			<guid isPermaLink="false">37538@http://premium.wpmudev.org/forums/</guid>
			<description><p>I was also working with my host and they added both the user from the old Database and the new databases to one of the new databases and it worked for that database loading in the move blogs.</p>
<p>However i feel like this shouldn't be necessary and i probably messed something up in the above scripts to cause this problem.
</p></description>
		</item>
		<item>
			<title>sjrenn on "Problem With Multi-DB isntall"</title>
			<link>http://premium.wpmudev.org/forums/topic/problem-with-multi-db-isntall#post-37537</link>
			<pubDate>Tue, 11 May 2010 05:50:55 +0000</pubDate>
			<dc:creator>sjrenn</dc:creator>
			<guid isPermaLink="false">37537@http://premium.wpmudev.org/forums/</guid>
			<description><p>For some reason it's still not working.</p>
<p>Here's a look at my db-config</p>
<pre><code>//---DB Scaling-----------------------------------------------------------//&#60;br /&#62;
//------------------------------------------------------------------------//&#60;br /&#62;
//	16,256,4096&#60;br /&#62;
define (&#39;DB_SCALING&#39;, &#39;256&#39;);&#60;br /&#62;
//------------------------------------------------------------------------//&#60;br /&#62;
//---DC IPs---------------------------------------------------------------//&#60;br /&#62;
//------------------------------------------------------------------------//&#60;br /&#62;
//	Usage: add_dc_ip(IP, DC)&#60;br /&#62;
//	EX: add_dc_ip(&#39;123.123.123.&#39;, &#39;dc1&#39;);&#60;br /&#62;
add_dc_ip(&#39;223.32.151.&#39;, &#39;dc1&#39;);&#60;br /&#62;
//------------------------------------------------------------------------//&#60;br /&#62;
//---Global Tables--------------------------------------------------------//&#60;br /&#62;
//------------------------------------------------------------------------//&#60;br /&#62;
//	Do not include default global tables&#60;br /&#62;
//	Leave off base prefix (eg: wp_)&#60;br /&#62;
//&#60;br /&#62;
//	Usage: add_global_table(TABLE_NAME)&#60;br /&#62;
//	EX: add_global_table(&#39;something&#39;);&#60;br /&#62;
add_global_table(&#39;press111_global&#39;);&#60;br /&#62;
//------------------------------------------------------------------------//&#60;br /&#62;
//---DB Servers-----------------------------------------------------------//&#60;br /&#62;
//------------------------------------------------------------------------//&#60;br /&#62;
//	Database servers grouped by dataset.&#60;br /&#62;
//	R can be 0 (no reads) or a positive integer indicating the order&#60;br /&#62;
//	in which to attempt communication (all locals, then all remotes)&#60;br /&#62;
//&#60;br /&#62;
//	Usage: add_db_server(DS, DC, READ, WRITE, HOST, LAN_HOST, NAME, USER, PASS)&#60;br /&#62;
//	EX: add_db_server(&#39;global&#39;, &#39;dc1&#39;, 1, 1,&#39;global.mysql.example.com:3509&#39;,&#39;global.mysql.example.lan:3509&#39;, &#39;global-db&#39;, &#39;globaluser&#39;,  &#39;globalpassword&#39;);&#60;br /&#62;
//&#60;br /&#62;
//	Note: you can also place this section in a file called db-list.php in wp-content&#60;/p&#62;
&#60;p&#62;add_db_server(&#39;global&#39;, &#39;dc1&#39;, 1, 1,&#39;223.32.151.136&#39;,&#39;223.32.151.136&#39;, &#39;wpmu_global&#39;, &#39;press111_multidb&#39;,  &#39;xxxxxxxxxxxxx&#39;);&#60;/p&#62;
&#60;p&#62;add_db_server(&#39;00&#39;, &#39;dc1&#39;, 1, 1,&#39;223.32.151.136&#39;,&#39;223.32.151.136&#39;, &#39;press111_00&#39;, &#39;press111_multidb&#39;,  &#39;xxxxxxxxxxxxx&#39;);&#60;br /&#62;
add_db_server(&#39;01&#39;, &#39;dc1&#39;, 1, 1,&#39;223.32.151.136&#39;,&#39;223.32.151.136&#39;, &#39;press111_00&#39;, &#39;press111_multidb&#39;,  &#39;xxxxxxxxxxxxx&#39;);&#60;br /&#62;
add_db_server(&#39;02&#39;, &#39;dc1&#39;, 1, 1,&#39;223.32.151.136&#39;,&#39;223.32.151.136&#39;, &#39;press111_00&#39;, &#39;press111_multidb&#39;,  &#39;xxxxxxxxxxxxx&#39;);&#60;/p&#62;
&#60;p&#62;(this repeats for all DB&#39;s)&#60;br /&#62;</code></pre>
<p>Here's the move-blogs.php</p>
<pre><code>///DB Settings&#60;br /&#62;
$dbname = &#34;press111_multidb&#34;;  //This is your current database&#60;br /&#62;
$blog_table_prefix = &#39;wp_&#39;;  //Prefix of your wpmu blog tables, most likely this won&#39;t need to be changed&#60;br /&#62;
$newdb_prefix = &#39;press111_&#39;;  //This is the prefix of the db&#39;s you&#39;re moving your tables into - we assume they are all the same, if not, you&#39;re in trouble&#60;/p&#62;
&#60;p&#62;//We need info to connect to the databases&#60;br /&#62;
$dbhost = &#39;223.32.151.136&#39;;&#60;br /&#62;
$dbuname = &#39;press111_wpmu&#39;;&#60;br /&#62;
$dbpass = &#39;xxxxxxxxxxxxxxxx&#39;;&#60;/p&#62;
&#60;p&#62;//How many db&#39;s are you moving into (16, 256, or 4096)?&#60;br /&#62;
$db_scaling = &#39;256&#39;;&#60;br /&#62;</code></pre></description>
		</item>
		<item>
			<title>sjrenn on "Problem With Multi-DB isntall"</title>
			<link>http://premium.wpmudev.org/forums/topic/problem-with-multi-db-isntall#post-37536</link>
			<pubDate>Tue, 11 May 2010 05:48:30 +0000</pubDate>
			<dc:creator>sjrenn</dc:creator>
			<guid isPermaLink="false">37536@http://premium.wpmudev.org/forums/</guid>
			<description><br /></description>
		</item>
		<item>
			<title>skolbloggen on "Problem With Multi-DB isntall"</title>
			<link>http://premium.wpmudev.org/forums/topic/problem-with-multi-db-isntall#post-36324</link>
			<pubDate>Fri, 30 Apr 2010 07:45:43 +0000</pubDate>
			<dc:creator>skolbloggen</dc:creator>
			<guid isPermaLink="false">36324@http://premium.wpmudev.org/forums/</guid>
			<description><p>256(!!!) db:s.... wow, are you using 256 servers, or do you have 256 WM:s, or do you run 256 instanses of mysql in the same box (if so, does it do any good then)?</p>
<p>I need to do something with my system, I just need to know how and what I should do (2000 blogs right now).
</p></description>
		</item>
		<item>
			<title>Aaron on "Problem With Multi-DB isntall"</title>
			<link>http://premium.wpmudev.org/forums/topic/problem-with-multi-db-isntall#post-35988</link>
			<pubDate>Tue, 27 Apr 2010 19:41:07 +0000</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">35988@http://premium.wpmudev.org/forums/</guid>
			<description><p>It looks like you just need to add your db login information for the user with full rights to access your old db in the move-blogs.php file.
</p></description>
		</item>
		<item>
			<title>sjrenn on "Problem With Multi-DB isntall"</title>
			<link>http://premium.wpmudev.org/forums/topic/problem-with-multi-db-isntall#post-35950</link>
			<pubDate>Tue, 27 Apr 2010 08:07:27 +0000</pubDate>
			<dc:creator>sjrenn</dc:creator>
			<guid isPermaLink="false">35950@http://premium.wpmudev.org/forums/</guid>
			<description><p>I'm currently installing multidb on a new wpmu network (only my main domain and a test blog), i set up 258 DB's (the 256 plus an extra vip for the main blog and a global database) however when i try to navigate to the move-blogs.php i'm getting the following error </p>
<p>Houston, we have a problem!<br />
Looks like you need to create your new db's! If you're lucky, this link still works - click me<br />
Database Error: Access denied for user 'my_old_DB'@'localhost' to database 'a_new_database'</p>
<p>Then it shows none of the new databases in the lower section of the error page</p>
<p>This is the setup i have on the move-blogs.php page</p>
<p>///DB Settings<br />
$dbname = "original_old_database";  //This is your current database<br />
$blog_table_prefix = 'wp_';  //Prefix of your wpmu blog tables, most likely this won't need to be changed<br />
$newdb_prefix = 'new_db_prefix';  //This is the prefix of the db's you're moving your tables into - we assume they are all the same, if not, you're in trouble</p>
<p>//We need info to connect to the databases<br />
$dbhost = 'localhost';<br />
$dbuname = 'old_db_username';<br />
$dbpass = 'old_db_password';</p>
<p>//How many db's are you moving into (16, 256, or 4096)?<br />
$db_scaling = '256';</p>
<p>I'm thinking i probably messed up something here, hopefully it's not something i messed up on the main db-config file but i'm not much of a mysql expert so i'm not sure
</p></description>
		</item>

	</channel>
</rss>
