<?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>SQL Archives - Nick Shaw</title>
	<atom:link href="https://www.nick-shaw.co.uk/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description></description>
	<lastBuildDate>Sat, 22 Apr 2017 15:24:15 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">150481139</site>	<item>
		<title>How to delete all images from your WordPress site</title>
		<link>https://www.nick-shaw.co.uk/delete-images-wordpress-site/</link>
					<comments>https://www.nick-shaw.co.uk/delete-images-wordpress-site/#respond</comments>
		
		<dc:creator><![CDATA[Nick]]></dc:creator>
		<pubDate>Sat, 22 Apr 2017 15:24:15 +0000</pubDate>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">https://www.nick-shaw.co.uk/?p=2155</guid>

					<description><![CDATA[<p>Use this SQL to remove all images/documents/etc from your media library 1 &#8211; Run these in phpmyadmin 2 &#8211; Manually delete all the year folders in the /wp-content/uploads folder.</p>
<p>The post <a href="https://www.nick-shaw.co.uk/delete-images-wordpress-site/">How to delete all images from your WordPress site</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Use this SQL to remove all images/documents/etc from your media library</p>
<p>1 &#8211; Run these in phpmyadmin</p>
<pre class="brush: sql; title: ; notranslate">
DELETE FROM wp_postmeta
WHERE post_id IN
(
SELECT id
FROM wp_posts
WHERE post_type = 'attachment'
)
;
</pre>
<pre class="brush: sql; title: ; notranslate">
DELETE FROM wp_posts WHERE post_type = 'attachment'
</pre>
<p>2 &#8211; Manually delete all the year folders in the /wp-content/uploads folder.</p>
<p>The post <a href="https://www.nick-shaw.co.uk/delete-images-wordpress-site/">How to delete all images from your WordPress site</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.nick-shaw.co.uk/delete-images-wordpress-site/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2157</post-id>	</item>
		<item>
		<title>Change all PrestaShop products to show price</title>
		<link>https://www.nick-shaw.co.uk/change-all-prestashop-products-to-show-price/</link>
					<comments>https://www.nick-shaw.co.uk/change-all-prestashop-products-to-show-price/#respond</comments>
		
		<dc:creator><![CDATA[Nick]]></dc:creator>
		<pubDate>Tue, 31 Mar 2015 05:28:58 +0000</pubDate>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Prestashop]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">http://www.nick-shaw.co.uk/?p=1929</guid>

					<description><![CDATA[<p>Using this command you can easily set all products to show the price. UPDATE `ps_product` SET show_price =1 WHERE show_price =0 UPDATE `ps_product_shop` SET show_price =1 WHERE show_price =0</p>
<p>The post <a href="https://www.nick-shaw.co.uk/change-all-prestashop-products-to-show-price/">Change all PrestaShop products to show price</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Using this command you can easily set all products to show the price.</p>
<pre class="brush: sql; title: ; notranslate">
UPDATE `ps_product` SET show_price =1 WHERE show_price =0
UPDATE `ps_product_shop` SET show_price =1 WHERE show_price =0
</pre>
<p>The post <a href="https://www.nick-shaw.co.uk/change-all-prestashop-products-to-show-price/">Change all PrestaShop products to show price</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.nick-shaw.co.uk/change-all-prestashop-products-to-show-price/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1929</post-id>	</item>
		<item>
		<title>Move WordPress site to another domain name</title>
		<link>https://www.nick-shaw.co.uk/move-wordpress-site-to-another-domain-name/</link>
					<comments>https://www.nick-shaw.co.uk/move-wordpress-site-to-another-domain-name/#respond</comments>
		
		<dc:creator><![CDATA[Nick]]></dc:creator>
		<pubDate>Thu, 17 Feb 2011 11:28:30 +0000</pubDate>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://www.nick-shaw.co.uk/code/?p=6</guid>

					<description><![CDATA[<p>Use these SQL commands if you are moving your website from one domain to another. Change Siteurl and Homeurl UPDATE wp_options SET option_value = replace(option_value, 'http://www.nick-shaw.com', 'https://www.nick-shaw.co.uk') WHERE option_name = 'home' OR option_name = 'siteurl'; Change GUID UPDATE wp_posts SET guid = REPLACE (guid, 'http://www.nick-shaw.com', 'https://www.nick-shaw.co.uk'); Change URL in Content UPDATE wp_posts SET post_content = [&#8230;]</p>
<p>The post <a href="https://www.nick-shaw.co.uk/move-wordpress-site-to-another-domain-name/">Move WordPress site to another domain name</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Use these SQL commands if you are moving your website from one domain to another.</p>
<h4>Change Siteurl and Homeurl</h4>
<pre class="brush: sql; title: ; notranslate">
UPDATE wp_options SET option_value = replace(option_value, 'http://www.nick-shaw.com', 'https://www.nick-shaw.co.uk') WHERE option_name = 'home' OR option_name = 'siteurl';
</pre>
<h4>Change GUID</h4>
<pre class="brush: sql; title: ; notranslate">
UPDATE wp_posts SET guid = REPLACE (guid, 'http://www.nick-shaw.com', 'https://www.nick-shaw.co.uk');
</pre>
<h4>Change URL in Content</h4>
<pre class="brush: sql; title: ; notranslate">
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://www.nick-shaw.com', 'https://www.nick-shaw.co.uk');
</pre>
<h4>Change URL in LayerSlider Plugin</h4>
<pre class="brush: sql; title: ; notranslate">
UPDATE wp_layerslider SET data = REPLACE (data, '179.160.70.168\\\/', 'www.')
</pre>
<p>The post <a href="https://www.nick-shaw.co.uk/move-wordpress-site-to-another-domain-name/">Move WordPress site to another domain name</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.nick-shaw.co.uk/move-wordpress-site-to-another-domain-name/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2155</post-id>	</item>
	</channel>
</rss>
