<?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>Design Gala &#187; database</title>
	<atom:link href="http://designgala.com/tag/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://designgala.com</link>
	<description>Web Usability, Web Technology, User Experience</description>
	<lastBuildDate>Thu, 26 Aug 2010 11:13:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to change wordpress theme directly from database?</title>
		<link>http://designgala.com/how-to-change-wordpress-theme-directly-from-database/</link>
		<comments>http://designgala.com/how-to-change-wordpress-theme-directly-from-database/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 17:31:26 +0000</pubDate>
		<dc:creator>Mukesh Chapagain</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.designgala.com/?p=976</guid>
		<description><![CDATA[I had some error in my new wp theme. When I enabled the new theme, I got a blank page. I was unable to access my wordpress blog both from frontend and backend (admin panel). In this case, either I need to change/fix my theme&#8217;s code. But, what if I am not a coder? The [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_jade" style="float: right;float: right;margin:-30px 0 5px 2px; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fdesigngala.com%252Fhow-to-change-wordpress-theme-directly-from-database%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2F705lV2%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22How%20to%20change%20wordpress%20theme%20directly%20from%20database%3F%22%20%7D);"></div>
<p>I had some error in my new wp theme. When I enabled the new theme, I got a blank page. I was unable to access my wordpress blog both from frontend and backend (admin panel).</p>
<p>In this case, either I need to change/fix my theme&#8217;s code. But, what if I am not a coder?</p>
<p>The solution is to change the currently active theme from database.</p>
<p>Open phpMyAdmin, go to your wp database. Open <strong>wp_options</strong> table. Search for three <strong>option_name</strong> &#8211; <strong>template</strong>, <strong>stylesheet</strong>, and <strong>current_theme</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span>
<span style="color: #990099; font-weight: bold;">FROM</span> wp_options
<span style="color: #990099; font-weight: bold;">WHERE</span> option_name <span style="color: #CC0099;">=</span> <span style="color: #008000;">'template'</span>
<span style="color: #CC0099; font-weight: bold;">OR</span> option_name <span style="color: #CC0099;">=</span> <span style="color: #008000;">'stylesheet'</span>
<span style="color: #CC0099; font-weight: bold;">OR</span> option_name <span style="color: #CC0099;">=</span> <span style="color: #008000;">'current<span style="color: #008080; font-weight: bold;">_</span>theme'</span><span style="color: #000033;">;</span></pre></div></div>

<p>See the <strong>option_value</strong> fields from the search result. The option_value will be your theme name. Change option_value of the search result to &#8216;classic&#8217; OR &#8216;default&#8217;. Classic and default are the default wordpress themes present at the time of wp installation.</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">UPDATE</span> wp_options <span style="color: #990099; font-weight: bold;">SET</span> option_value <span style="color: #CC0099;">=</span> <span style="color: #008000;">'default'</span> <span style="color: #990099; font-weight: bold;">WHERE</span> option_name <span style="color: #CC0099;">=</span> <span style="color: #008000;">'template'</span><span style="color: #000033;">;</span>
&nbsp;
<span style="color: #990099; font-weight: bold;">UPDATE</span> wp_options <span style="color: #990099; font-weight: bold;">SET</span> option_value <span style="color: #CC0099;">=</span> <span style="color: #008000;">'default'</span> <span style="color: #990099; font-weight: bold;">WHERE</span> option_name <span style="color: #CC0099;">=</span> <span style="color: #008000;">'stylesheet'</span><span style="color: #000033;">;</span>
&nbsp;
<span style="color: #990099; font-weight: bold;">UPDATE</span> wp_options <span style="color: #990099; font-weight: bold;">SET</span> option_value <span style="color: #CC0099;">=</span> <span style="color: #008000;">'default'</span> <span style="color: #990099; font-weight: bold;">WHERE</span> option_name <span style="color: #CC0099;">=</span> <span style="color: #008000;">'current<span style="color: #008080; font-weight: bold;">_</span>theme'</span><span style="color: #000033;">;</span></pre></div></div>


<img src="http://designgala.com/?ak_action=api_record_view&id=976&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://designgala.com/how-to-change-wordpress-theme-directly-from-database/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to transfer wordpress installation from one server to another?</title>
		<link>http://designgala.com/how-to-transfer-wordpress-installation-from-one-server-to-another/</link>
		<comments>http://designgala.com/how-to-transfer-wordpress-installation-from-one-server-to-another/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 15:08:04 +0000</pubDate>
		<dc:creator>Mukesh Chapagain</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.designgala.com/?p=865</guid>
		<description><![CDATA[Suppose, you are migrating you wordpress installation from one server to the other. In this case, you might have a different database server, database username and password. You might also have a different domain name as well. A general scenario will be migrating you wordpress installation from your localhost (local installation on your computer) to [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_jade" style="float: right;float: right;margin:-30px 0 5px 2px; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fdesigngala.com%252Fhow-to-transfer-wordpress-installation-from-one-server-to-another%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2F4rZi6T%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22How%20to%20transfer%20wordpress%20installation%20from%20one%20server%20to%20another%3F%22%20%7D);"></div>
<p style="text-align: justify;">Suppose, you are migrating you wordpress installation from one server to the other. In this case, you might have a different database server, database username and password. You might also have a different domain name as well. A general scenario will be migrating you wordpress installation from your localhost (local installation on your computer) to any online server.</p>
<p style="text-align: justify;">In this case, you need to consider few things to make the site working. You need to make changes in wp-config.php (present in root directory of wordpress installation) and some update in wp-options table of your database.</p>
<p style="text-align: justify;"><strong>Changes in wp-config.php</strong></p>
<p style="text-align: justify;">I suppose that my database name is wordpress, database username is root, password is pass and database server name is localhost.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/** The name of the database for WordPress */</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_NAME'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wordpress'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/** MySQL database username */</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_USER'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'root'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/** MySQL database password */</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_PASSWORD'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pass'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/** MySQL hostname */</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_HOST'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'localhost'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p style="text-align: justify;"><strong>Changes in database (wp-options table)</strong></p>
<p style="text-align: justify;">1) In<strong> wp-options</strong> table, search for <strong>siteurl </strong>and<em> </em><strong>home</strong> in <strong>option_name</strong> column.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">SELECT * FROM `wp_options` where `option_name` = 'siteurl' OR `option_name` = 'home';</pre></div></div>

<p style="text-align: justify;">2) Then edit the <strong>option_value</strong> column for the two rows with your current site url. I have supposed your current url as http://example.com. You can put your own url.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">UPDATE `wp_options` SET `option_value` = 'http://example.com' WHERE `wp_options`.`option_name` = 'home' ;
&nbsp;
UPDATE `wp_options` SET `option_value` = 'http://example.com' WHERE `wp_options`.`option_name` = 'siteurl' ;</pre></div></div>


<img src="http://designgala.com/?ak_action=api_record_view&id=865&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://designgala.com/how-to-transfer-wordpress-installation-from-one-server-to-another/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
