<?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>The Css Bug &#187; MySQL</title>
	<atom:link href="http://thecssbug.com/category/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://thecssbug.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 29 Jul 2009 15:52:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wamp wamp</title>
		<link>http://thecssbug.com/wamp-wamp</link>
		<comments>http://thecssbug.com/wamp-wamp#comments</comments>
		<pubDate>Mon, 06 Jul 2009 20:37:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[Sitepoint]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wamp]]></category>

		<guid isPermaLink="false">http://thecssbug.com/?p=102</guid>
		<description><![CDATA[With the lunch of the 4th edition of the &#8220;Build Your Own Database Driven Web Site Using PHP &#38; MySQL&#8221; book, the SitePoint team starts by offering a superb free tutorial on installing the WAMP platform.
WampServer (where Wamp stands for Windows, Apache, MySQL, and PHP) is a free, all-in-one program that includes built-in copies of [...]]]></description>
			<content:encoded><![CDATA[<p>With the lunch of the 4th edition of the &#8220;Build Your Own Database Driven Web Site Using PHP &amp; MySQL&#8221; book, the SitePoint team starts by offering a superb free tutorial on installing the WAMP platform.</p>
<p>WampServer (where Wamp stands for Windows, Apache, MySQL, and PHP) is a free, all-in-one program that includes built-in copies of recent versions of the Apache web server, PHP, and MySQL.</p>
<p>Full article on  <a href="http://www.sitepoint.com/article/php-amp-mysql-1-installation/">SitePoint</a></p>
]]></content:encoded>
			<wfw:commentRss>http://thecssbug.com/wamp-wamp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL String Replace</title>
		<link>http://thecssbug.com/mysql-string-replace</link>
		<comments>http://thecssbug.com/mysql-string-replace#comments</comments>
		<pubDate>Thu, 02 Jul 2009 13:16:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[string replace]]></category>

		<guid isPermaLink="false">http://thecssbug.com/?p=91</guid>
		<description><![CDATA[Mass String Replace in a MySQL database]]></description>
			<content:encoded><![CDATA[<p>There is common problem I have when working with large user ganereted databases. Sometimes the forms that you provide ofr the users are not self-explanatory, and the whrong kind of data gets into the databse, the kind that you don&#8217;t expect. This time I provided a filed for the user&#8217;s personal websites, and some of them didn&#8217;t provide the entire path, that is www.thecssbug.com instead of the http://www.thecssbug.com. As you know if you provide a link like this:</p>
<pre class="brush: sql">

&lt;a href=&quot;www.thecssbug.com&quot;&gt;The Css Bug&lt;/a&gt;
</pre>
<p>the browser will not interpret if correctly. The solution in my case (appart from a form change) is a <strong>SQL Mass Replace</strong>.</p>
<pre class="brush: sql">

UPDATE userProfile SET webSite = REPLACE(webSite,&quot;www.&quot;,&quot;http://www.&quot;)  WHERE webSite LIKE &quot;%www%&quot; and webSite NOT LIKE &quot;http%&quot;
</pre>
<p>In general:</p>
<pre class="brush: sql">

UPDATE table_name SET column_name = REPLACE(column_name,&quot;original_string&quot;,&quot;replace_string&quot;)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://thecssbug.com/mysql-string-replace/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset autoincrement value in a mysql table</title>
		<link>http://thecssbug.com/reset-autoincrement-value-in-a-mysql-table</link>
		<comments>http://thecssbug.com/reset-autoincrement-value-in-a-mysql-table#comments</comments>
		<pubDate>Thu, 09 Apr 2009 10:09:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[alter]]></category>
		<category><![CDATA[autoincrement]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://thecssbug.com/?p=72</guid>
		<description><![CDATA[Use the following SQL command:

ALTER TABLE table_name AUTO_INCREMENT = new_value

]]></description>
			<content:encoded><![CDATA[<p>Use the following SQL command:</p>
<pre class="brush: sql">
ALTER TABLE table_name AUTO_INCREMENT = new_value
</pre>
]]></content:encoded>
			<wfw:commentRss>http://thecssbug.com/reset-autoincrement-value-in-a-mysql-table/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
