<?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 RoarinPenguin Techiezone &#187; SQL</title>
	<atom:link href="http://techiezone.rottigni.net/category/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://techiezone.rottigni.net</link>
	<description>Notes, hints, tips... in one word: experience!</description>
	<lastBuildDate>Thu, 26 Jan 2012 03:17:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Assigning privileges to a user on MySQL DB</title>
		<link>http://techiezone.rottigni.net/2009/02/assigning-privileges-to-a-user-on-mysql-db/</link>
		<comments>http://techiezone.rottigni.net/2009/02/assigning-privileges-to-a-user-on-mysql-db/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 18:09:43 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[privileges]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/2009/02/assigning-privileges-to-a-user-on-mysql-db/</guid>
		<description><![CDATA[Quick and dirty commands from commandline: mysql -u &#60;user&#62; -p&#60;password&#62; mysql&#62; CREATE DATABASE wordpress; mysql&#62; GRANT ALL PRIVILEGES ON wordpress.* TO &#8216;wpuser&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;dbpassword&#8217;; mysql&#62; SET PASSWORD FOR &#8216;wpuser&#8217;@'localhost&#8217; = OLD_PASSWORD(&#8216;dbpassword&#8217;); mysql&#62; FLUSH PRIVILEGES; mysql&#62; quit;]]></description>
			<content:encoded><![CDATA[<p>Quick and dirty commands from commandline:</p>
<p> <font face="Helv"><font face="Helv" color="#0080ff" size="2">
<p dir="ltr">mysql -u &lt;user&gt; -p&lt;password&gt;       <br />mysql&gt; CREATE DATABASE wordpress;        <br />mysql&gt; GRANT ALL PRIVILEGES ON wordpress.* TO &#8216;wpuser&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;dbpassword&#8217;;        <br />mysql&gt; SET PASSWORD FOR &#8216;wpuser&#8217;@'localhost&#8217; = OLD_PASSWORD(&#8216;dbpassword&#8217;);        <br />mysql&gt; FLUSH PRIVILEGES;        <br />mysql&gt; quit;</p>
<p>   </font></font></p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2009/02/assigning-privileges-to-a-user-on-mysql-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace characters in MySQL</title>
		<link>http://techiezone.rottigni.net/2008/12/replace-characters-in-mysql/</link>
		<comments>http://techiezone.rottigni.net/2008/12/replace-characters-in-mysql/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 16:44:08 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[characters]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/2008/12/replace-characters-in-mysql/</guid>
		<description><![CDATA[It happens sometimes that due to database migration, you see spurious characters in MySQL tables and you would like to intervene massively (thick for instance to forums) and replace them with proper characters. Luckily this is easily doable if you manage to have connection to DB with command line interface or web based system allowing [...]]]></description>
			<content:encoded><![CDATA[<p>It happens sometimes that due to database migration, you see spurious characters in MySQL tables and you would like to intervene massively (thick for instance to forums) and replace them with proper characters.</p>
<p>Luckily this is easily doable if you manage to have connection to DB with command line interface or web based system allowing you to issue SQL statements.</p>
<p>Command to use is:</p>
<p><font face="Courier New" color="#0080c0">update TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, &#8216;find this string&#8217;, &#8216;replace found string with this string&#8217;);</font></p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2008/12/replace-characters-in-mysql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cleanup SPAM users in PHPBB2</title>
		<link>http://techiezone.rottigni.net/2008/12/cleanup-spam-users-in-phpbb2/</link>
		<comments>http://techiezone.rottigni.net/2008/12/cleanup-spam-users-in-phpbb2/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 14:51:09 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[phpbb]]></category>
		<category><![CDATA[spam users]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/2008/12/cleanup-spam-users-in-phpbb2/</guid>
		<description><![CDATA[Once you have access to DB, the SQL string is: DELETE FROM phpbb_users WHERE user_active=0 AND user_id&#62;0 This will cleanup all the users marked as non active, thus most likely spam.]]></description>
			<content:encoded><![CDATA[<p>Once you have access to DB, the SQL string is:</p>
<p><font face="Courier New" size="2">DELETE FROM phpbb_users WHERE user_active=0 AND user_id&gt;0 </font></p>
<p>This will cleanup all the users marked as non active, thus most likely spam.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2008/12/cleanup-spam-users-in-phpbb2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

