<?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>WpFunc &#187; mysql</title>
	<atom:link href="http://wpfunc.com/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Thu, 01 Dec 2011 01:17:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>John Asked &#8216;Add a hyperlink to the Authors Name&#8217;</title>
		<link>http://wpfunc.com/wordpress/john-asked-add-a-hyperlink-to-the-authors-name.html</link>
		<comments>http://wpfunc.com/wordpress/john-asked-add-a-hyperlink-to-the-authors-name.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 18:59:44 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[author name]]></category>
		<category><![CDATA[hyperlink]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nickname]]></category>
		<category><![CDATA[user_login]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=265</guid>
		<description><![CDATA[Hi everybody. When i check my e-mails i see John&#8217;s one. He asked me about how he can add a hyperlink with authors nickname. I live in Turkey and i get this e-mail tonight because im working and tehere is Time difference :) Ok John i found answer. Lets begin.
Firstly we use an user system [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Hi everybody. When i check my e-mails i see John&#8217;s one. He asked me about how he can add a hyperlink with authors nickname. I live in Turkey and i get this e-mail tonight because im working and tehere is Time difference :) Ok John i found answer. Lets begin.<span id="more-265"></span></p>
<p style="text-align: justify;">Firstly we use an user system with WordPress and this system give a chance for using our nicknames, login names or our First and Last names. When we add a nickname we can use this for our Display name. But linking system is different. The system uses our login names for linking and we can&#8217;t change this login name from User Options. Because of this we have to change our login name from mysql (There are some plugins but i can&#8217;t trust anymore). I tell answer to you step by step. <em><strong>If you want to only  show your author&#8217;s dipslay name with link Don&#8217;t use Mysql entires.</strong></em></p>
<h3 style="text-align: justify;">First Step: Choose a nickname;</h3>
<p style="text-align: justify;">Login to your Dashboard and edit your Personal Information. There a filed with name &#8216;Nickname&#8217;. Add your Nickname here and save. After save you can select your Display name with a DropDown. Choose your Nickname as Display Name and save.</p>
<h3 style="text-align: justify;">Second Step: Change the Login Name From Mysql Admin;</h3>
<p style="text-align: justify;">Login to your Cpanel (maybe Plesk Panel) and Open PhpMyadmin. Find your Mysql and open it. After that choose wp_users and click on it. When the table opened you can edit your and authors info. Press the edit link and change <strong><em>user_login</em></strong> with whatever you want. That&#8217;s All. Save the info.After saving the link will change with new <em><strong>User Login name.</strong></em></p>
<h3 style="text-align: justify;">Third Step: Adding the code;</h3>
<p style="text-align: justify;">If you want to add a code to your posts, pages you can add this one-line code to your theme.  If you apply first step you will see title with author Nickname. When you add this code, the link will be like this;</p>
<pre class="brush: plain; title: ; notranslate">&lt;a href=&quot;author link&quot;&gt;Author Nickname&lt;/a&gt;</pre>
<h3 style="text-align: justify;">The code;</h3>
<pre class="brush: php; title: ; notranslate">&lt;?php the_author_posts_link(); ?&gt;</pre>
<p style="text-align: justify;">That&#8217;s All.</p>
<p style="text-align: justify;"><em><strong><span style="color: #ff0000;">Note: </span>If you don&#8217;t apply Second Step The Permalink will be user_login name. But you change user_login name like nickname, Permalink will be your new user_login.</strong></em></p>
<p style="text-align: justify;">Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/john-asked-add-a-hyperlink-to-the-authors-name.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimize DB! Optimize Your Database with one click!</title>
		<link>http://wpfunc.com/wp-plugins/optimize-db-optimize-your-database-with-one-click.html</link>
		<comments>http://wpfunc.com/wp-plugins/optimize-db-optimize-your-database-with-one-click.html#comments</comments>
		<pubDate>Mon, 21 Sep 2009 23:30:56 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[WP Plugins]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[yoast]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=185</guid>
		<description><![CDATA[When i was googling i find a good and simple WordPress plugin, Optimize DB. This plugin created and owned by Yoast.com. I try this plugin and i think it&#8217;s a good plugin. You don&#8217;t use any hard code and you don&#8217;t need make any change your WordPress system. Just upload and activate.
After you activate this plugin, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">When i was googling i find a good and simple WordPress plugin, Optimize DB. This plugin created and owned by Yoast.com. I try this plugin and i think it&#8217;s a good plugin. You don&#8217;t use any hard code and you don&#8217;t need make any change your WordPress system. Just upload and activate.<span id="more-185"></span></p>
<p style="text-align: justify;">After you activate this plugin, go to <strong><span style="color: #ff0000;">Tools &gt; Optimize DB</span></strong> and you get a report about your DB. And click to <strong>Optimize Now</strong>! That&#8217;s All!</p>
<p style="text-align: justify;">Plugins Page:</p>
<p style="text-align: justify;"><span class="note"><a href="http://yoast.com/wordpress/optimize-db/" target="_blank">Optimize DB &#8211; Yoast</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wp-plugins/optimize-db-optimize-your-database-with-one-click.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Delete Your Posts Revisions! Simply, Quickly!</title>
		<link>http://wpfunc.com/wordpress/delete-your-posts-revisions-simply-quickly.html</link>
		<comments>http://wpfunc.com/wordpress/delete-your-posts-revisions-simply-quickly.html#comments</comments>
		<pubDate>Sun, 09 Aug 2009 06:27:01 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[revision]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=155</guid>
		<description><![CDATA[

Did you bored with your revisions and sometimes WordPress post revisions dont let change post! When i try to change my 6 months-old post, revisions stop the changes everytime. If you get this warning like me, you can delete them with one line Mysql command. Lets Begin.We will change our database fields with this function. [...]]]></description>
			<content:encoded><![CDATA[<div>
<div>
<p style="text-align: justify;">Did you bored with your revisions and sometimes WordPress post revisions dont let change post! When i try to change my 6 months-old post, revisions stop the changes everytime. If you get this warning like me, you can delete them with one line Mysql command. Lets Begin.We will change our database fields with this function. If you don’t know abut PHPMyadmin don’t use this function. Because this function change <strong><em>wp_posts</em></strong> and <em><strong>post_type</strong></em> columns on the database!<span id="more-155"></span></p>
<p style="text-align: justify;">Firstly i think you should make a backup on mysql. Because this command will change our <em><strong>wp_posts</strong></em> and <em><strong>post_type </strong></em>columns. After the backup you can use this code with SQL area of PHPMyadmin.</p>
<h3>Here is the code;</h3>
<pre class="brush: plain; title: ; notranslate">DELETE FROM wp_posts WHERE post_type = &quot;revision&quot;;</pre>
<p style="text-align: justify;">We have a <strong>post_type</strong> area on our wp_posts table. This area have ‘<em>page’, ‘revision’, ‘post’</em> content. We will delete ‘revision’ one. And then we will make a low-weight database and we won’t get a revision error.</p>
<p style="text-align: justify;">That’s All. Have a nice day!</p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/delete-your-posts-revisions-simply-quickly.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2 Useful SQL Hacks For WordPress</title>
		<link>http://wpfunc.com/wordpress/2-useful-sql-hacks-for-wordpress.html</link>
		<comments>http://wpfunc.com/wordpress/2-useful-sql-hacks-for-wordpress.html#comments</comments>
		<pubDate>Sun, 26 Jul 2009 11:00:47 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[footer.php]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[queries]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[spam commets]]></category>
		<category><![CDATA[theme edit]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=113</guid>
		<description><![CDATA[I Love Mysql, love WordPress too :) Here i give to you 2 simple and useful sql hacks for WordPress. First one is about spam comments and delete them. Second one is show number of queries on your footer. You can apply from Mysql application. Lets Begin&#8230;
1st one; Delete your 5000 spam comments in 1 [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I Love Mysql, love WordPress too :) Here i give to you 2 simple and useful sql hacks for WordPress. First one is about spam comments and delete them. Second one is show number of queries on your footer. You can apply from Mysql application. Lets Begin&#8230;<span id="more-113"></span></p>
<h3>1st one; Delete your 5000 spam comments in 1 second :)</h3>
<p>Yes you read it rightly. You can delete your spam comments from mysql in 1 second. Firstly you have to login to your <strong><em>Mysql Manager</em></strong> and integrate this lines from tab.</p>
<h3>Here is the code:</h3>
<pre class="brush: plain; title: ; notranslate">DELETE from wp_comments WHERE comment_approved = '0';</pre>
<p>That&#8217;s All! You delete your spam comments :)</p>
<h3>2nd one; Show number of queries on your footer</h3>
<p style="text-align: justify;">You can show number of queries and query time on your template&#8217;s footer. That&#8217;s a simple code again and you have to edit your <span style="color: #ff0000;"><em><strong>footer.php</strong></em></span> file. Add this lines to footer.php</p>
<h3>Here is the code;</h3>
<pre class="brush: plain; title: ; notranslate">&lt;?php if (is_user_logged_in()) { ?&gt;
 &lt;?php echo get_num_queries(); ?&gt; queries in &lt;?php timer_stop(1); ?&gt; seconds.
&lt;?php } ?&gt;</pre>
<p>We add<strong><em> if_user_logged_in</em></strong> because we dont want to visitors see this line :)</p>
<p>That&#8217;s All. Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/2-useful-sql-hacks-for-wordpress.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

