<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>StrategicPoints &#187; mysql</title>
	<atom:link href="http://www.strategicpoints.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.strategicpoints.com</link>
	<description>StrategicPoints offers web development and web business planning services</description>
	<lastBuildDate>Sat, 17 Dec 2011 16:35:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Enterprise WordPress &#8211; Things You Have to Change &#8211; Robots.txt, wp-config.php, etc.</title>
		<link>http://www.strategicpoints.com/2010/01/15/enterprise-wordpress-things-you-have-to-change-robots-txt-wp-config-php-etc/</link>
		<comments>http://www.strategicpoints.com/2010/01/15/enterprise-wordpress-things-you-have-to-change-robots-txt-wp-config-php-etc/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 15:29:13 +0000</pubDate>
		<dc:creator>dgudema</dc:creator>
				<category><![CDATA[Enterprise WordPress]]></category>
		<category><![CDATA[Robots.txt]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[wp-config.php]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[siteurl]]></category>

		<guid isPermaLink="false">http://www.strategicpoints.com/?p=254</guid>
		<description><![CDATA[After all the hullabaloo in getting WordPress ready and implemented for the enterprise, with a DEV, QA and PROD environment, there are a lot of small gotchas that are still sitting around.  For those of you trying out WordPress for the Enterprise level, these are the little gotcha&#8217;s to worry about, and Robots.txt is one [...]]]></description>
			<content:encoded><![CDATA[<p>After all the hullabaloo in getting WordPress ready and implemented for the enterprise, with a DEV, QA and PROD environment, there are a lot of small gotchas that are still sitting around.  For those of you trying out WordPress for the Enterprise level, these are the little gotcha&#8217;s to worry about, and Robots.txt is one of them:</p>
<ul>
<li>Robots.txt<br />
Robots.txt needs to be different in each level of DEV, QA and PROD.  If you are using SVN this can be a challenge.  If you don&#8217;t know what SVN or CVS are, then don&#8217;t worry about this one.  Basically as you copy the site from DEV to QA to PROD, you end up with the same robots.txt.  This can&#8217;t happen from a technical perspective, since you really want robots.txt to block the search engine bots on DEV and QA, and not on PROD.</li>
<li>wp-config.php<br />
wp-config.php, the settings file for WordPress, needs to be modified if you are spanning the code across DEV, QA and PROD.  Simple answer for this, use the old PHP switch statement and change the site based on server name with case statements.  The variable to use for this is $_SERVER['SERVER_NAME'].    A good example is below:</p>
<p><em>// ** MySQL settings &#8211; You can get this info from your web host ** //<br />
switch( $_SERVER['SERVER_NAME'] )<br />
{<br />
case &#8220;dev.strategicpoints.com&#8221;:<br />
define(&#8217;DB_NAME&#8217;, &#8216;dbname&#8217;);<br />
define(&#8217;DB_USER&#8217;, &#8216;dbuser&#8217;);<br />
define(&#8217;DB_PASSWORD&#8217;, &#8216;dbpassword&#8217;);<br />
define(&#8217;DB_HOST&#8217;, &#8216;localhost or SERVER NAME&#8217;);<br />
break;</em></p>
<p><em>case &#8220;qa.strategicpoints.com&#8221;:<br />
define(&#8217;DB_NAME&#8217;, &#8216;dbname&#8217;);<br />
define(&#8217;DB_USER&#8217;, &#8216;dbuser&#8217;);<br />
define(&#8217;DB_PASSWORD&#8217;, &#8216;dbpassword&#8217;);<br />
define(&#8217;DB_HOST&#8217;, &#8216;localhost or SERVER NAME&#8217;);<br />
break;</em></p>
<p><em>case &#8220;www.strategicpoints.com&#8221;:<br />
case &#8220;strategicpoints.com&#8221;:<br />
define(&#8217;DB_NAME&#8217;, &#8216;dbname&#8217;);<br />
define(&#8217;DB_USER&#8217;, &#8216;dbuser&#8217;);<br />
define(&#8217;DB_PASSWORD&#8217;, &#8216;dbpassword&#8217;);<br />
define(&#8217;DB_HOST&#8217;, &#8216;localhost or SERVER NAME&#8217;);<br />
break;<br />
}<br />
</em></li>
<li>Server Name in Mysql<br />
It is important to make 2 changes in each DB when migrating MYSQL between DEV, QA and PROD.  These are in the wp_options table, and if you have been through this drill before they are pretty explanatory.  The option names you have to change are &#8220;siteurl&#8221; and &#8220;home&#8221; to the full path of the site such as http://www.strategicpoints.com.</li>
</ul>
<p>To solve some of these incompatibilities between the DEV, QA and PROD there are plugins and other things that need to be put in place in order to keep these versions in sync.  This is a major challenge.  As I solve each one of these issue or more issues, I am going to update this blog post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strategicpoints.com/2010/01/15/enterprise-wordpress-things-you-have-to-change-robots-txt-wp-config-php-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress In The Enterprise &#8211; Article 4, Upgrading WordPress!</title>
		<link>http://www.strategicpoints.com/2009/09/17/wordpress-in-the-enterprise-article-4-upgrading-wordpress/</link>
		<comments>http://www.strategicpoints.com/2009/09/17/wordpress-in-the-enterprise-article-4-upgrading-wordpress/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 02:58:04 +0000</pubDate>
		<dc:creator>dgudema</dc:creator>
				<category><![CDATA[Enterprise WordPress]]></category>
		<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Migrating DEV to QA]]></category>
		<category><![CDATA[Migrating QA to Prod]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Publishing Plugin]]></category>
		<category><![CDATA[Redirection]]></category>
		<category><![CDATA[SEO All In One Pack]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[pushing]]></category>
		<category><![CDATA[wordp]]></category>
		<category><![CDATA[WordPress Enterprise]]></category>
		<category><![CDATA[wordpress plugins]]></category>

		<guid isPermaLink="false">http://www.strategicpoints.com/?p=58</guid>
		<description><![CDATA[This article is the 4th of a series of articles about WordPress In The Enterprise. This article is a work in progress, I am going to add to it as I go about this process, since I am tackling an issue that right now has no easy answer in the enterprise, and that is how [...]]]></description>
			<content:encoded><![CDATA[<p>This article is the 4th of a series of articles about <a title="WordPress" href="http://www.wordpress.org" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wordpress.org');">WordPress</a> In The Enterprise. This article is a work in progress, I am going to add to it as I go about this process, since I am tackling an issue that right now has no easy answer in the enterprise, and that is how to upgrade enterprise driven WordPress implementations.  Why upgrade?  Well, every chicken little on the <a title="WordPress" href="http://www.wordpress.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wordpress.org');">WordPress</a> blog/web has said if you don&#8217;t you may have a security issue.  This is the kind of corporate implementation that includes a development server, a QA server and a load balanced production server.</p>
<p>If you want to start at the beginning and read them in a sequence use the following links below:</p>
<p><a title="WordPress For The Enterprise" href="http://www.strategicpoints.com/2009/07/30/wordpress-for-the-enterprise-article-1-why-wordpress-for-the-enterprise/#content" >WordPress For The Enterprise &#8211; Article 1 &#8211; Setting The Mood</a><br />
<a title="WordPress For The Enterprise - Which Plugins To Use" href="http://www.strategicpoints.com/2009/07/31/wordpress-for-the-enterprise-article-2/#content" >WordPress For The Enterprise &#8211; Article 2 &#8211; Issues And Plugins</a><br />
<a title="WordPress For The Enterprise - Article 3 Issues &amp; Problems" href="http://www.strategicpoints.com/2009/08/10/wordpress-for-the-enterprise-article-3/#content" >WordPress For The Enterprise &#8211; Article 3 &#8211; Implementation Problems</a></p>
<p>Ok, now that you have read up on the first series of articles, let&#8217;s get to the heart of the problem with upgrading from an enterprise perspective.  First off, the real issue is that <a title="WordPress" href="http://www.wordpress.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wordpress.org');">WordPress</a> is not an enterprise product, just yet.  This does not mean it won&#8217;t be in the future, so like a <a title="WordPress" href="http://www.wordpress.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wordpress.org');">WordPress</a> plugin that does not yet exist, we have an issue that just needs to be solved.  The big issue is testing a new <a title="WordPress" href="http://www.wordpress.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wordpress.org');">WordPress</a> Version on a development server and then somehow easily upgrading the QA and production servers.</p>
<p>Upgrade Method<br />
If you use the <a title="WordPress" href="http://www.wordpress.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wordpress.org');">WordPress</a> upgrade method right out of the box, you are somehow violating a holy grail of upgrading from development to QA to production.  Or are you?  The current <a title="WordPress" href="http://www.wordpress.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wordpress.org');">WordPress</a> recommended method of upgrading is to load the new set of version files like from 2.8 to 2.84 (not overwriting wp-content&#8217;s themes &amp; plugins directories, or anything else unique) and just letting the new version, like 2.8.4 do its magic.  By magic, I mean it sometimes, but not always makes modifications to MySQL table structures.  If that were not an issue, this would kind of be a mute point, because then we would just copy the development site over and be done with it.  If you need the most recent version of <a title="WordPress" href="http://www.wordpress.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wordpress.org');">WordPress</a>, you can get it by <a title="Where to get a wordpress download" href="http://wordpress.org/download/" onclick="javascript:pageTracker._trackPageview('/outbound/article/wordpress.org');">clicking here</a>.</p>
<p>Testing Plugins<br />
Let&#8217;s take a little diversion here.  Obviously one of the most important issue in the enterprise solution that I am trying to figure out, is testing plugins.  Apparently you have to update certain plugins with the most recent version of the plugin to make sure it is compatible with an upgrade.  This is a bit taxing on plugin makers who have to keep up with major revisions.  The task at hand is to test plugins like <a title="all in one seo plugin" href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/" onclick="javascript:pageTracker._trackPageview('/outbound/article/wordpress.org');">seo-all-in-one-pack</a>, <a title="google analytics plugin for wordpress" href="http://wordpress.org/extend/plugins/google-analytics-for-wordpress/" onclick="javascript:pageTracker._trackPageview('/outbound/article/wordpress.org');">google analytics</a>, <a title="Wordpress redirection plugin" href="http://wordpress.org/extend/plugins/redirection/" onclick="javascript:pageTracker._trackPageview('/outbound/article/wordpress.org');">redirection</a>, and others for compatibilities.  If a very important plugin can not be upgraded and remains incompatible with the new Version, well, let&#8217;s just say you will be going to the backup.</p>
<p>The Backup<br />
An important step in the upgrade process is the backup.  I am not talking about the system backup you get from your server folks when the server crashes dead as a doornail, I am talking about backing up MySQL fully before you do the upgrade.  Not explicitly required for the non-enterprise version, but for enterprise it is a must.  Simply back it up to a .sql file and keep it handy, even in the development site before an upgrade.  Good practice and that is what enterprise <a title="WordPress" href="http://www.wordpress.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wordpress.org');">WordPress</a> is all about.</p>
<p>The Upgrade Process<br />
Once you have gone through the standard copy of the files over the development, you need to surf wp-admin area of <a title="WordPress" href="http://www.wordpress.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wordpress.org');">WordPress</a>.  Immediately it will come up and there is a button that says UPGRADE to version x.x.x.  You click it and hopefully it all goes well.  Simple enough and that dev version is upgraded.</p>
<p>The QA Process<br />
Tedious as it is, you need to go through and not just test out the content, permalinks and categories, but you need to take a look carefully at the plugins from both a site perspective on the outside and in the admin and tools areas as well to make sure they are functional on the inside.  Once this is complete and tested, it is time to push it.</p>
<p>Pushing It<br />
By pushing it, I mean pushing files up to the QA server, along with a mysql copy.  This may be more of an SA task, but up till now it has been in the hands of the person managing the <a title="WordPress" href="http://www.wordpress.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wordpress.org');">WordPress</a> version.  If you had left it purely up to SAs, it probably would not have happened right.  All that has to happen at this point in the process is complete duplication of 2 things: files and Mysql DB.  The duplication on the QA and production server will complete the process&#8230;hopefully.</p>
<p>Until somebody writes the ultimate publishing plugin for <a title="WordPress" href="http://www.wordpress.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wordpress.org');">WordPress</a> Enterprise, this will be a bit of black hole.  Trust me somebody out there is going to fill this void.  We have been hard at work on our own internal <a title="WordPress" href="http://www.wordpress.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wordpress.org');">WordPress</a> publishing plugin, but I am sure there will be open source versions sometime soon on the web.</p>
<p>Dan</p>
<p>Next Article <a href="http://www.strategicpoints.com/2009/09/29/wordpress-in-the-enterprise-%E2%80%93-article-5-post-mortem/" >WordPress In The Enterprise &#8211; Article 5 &#8211; Post Mortem</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.strategicpoints.com/2009/09/17/wordpress-in-the-enterprise-article-4-upgrading-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

