<?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>PhilFreo.com &#187; MySQL</title>
	<atom:link href="http://philfreo.com/blog/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://philfreo.com/blog</link>
	<description>The portfolio and blog of Phil Freo, on web design, development, and entrepreneurship.</description>
	<lastBuildDate>Mon, 18 Jan 2010 07:33:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Upgrading MySQL, PHP MySQL Client Version, phpMyAdmin</title>
		<link>http://philfreo.com/blog/upgrading-mysql-php-mysql-client-version-phpmyadmin/</link>
		<comments>http://philfreo.com/blog/upgrading-mysql-php-mysql-client-version-phpmyadmin/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 18:23:07 +0000</pubDate>
		<dc:creator>Phil Freo</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://www.philfreo.com/blog/?p=43</guid>
		<description><![CDATA[Some mental notes for myself in case I encounter this again, and maybe this will help someone as I was doing Google searches trying to figure this out myself&#8230;

I have a server with ServInt, which runs WebHost Manager (WHM) and cPanel.  I logged into phpMyAdmin and it said I was running MySQL 4 instead of [...]]]></description>
			<content:encoded><![CDATA[<p>Some mental notes for myself in case I encounter this again, and maybe this will help someone as I was doing Google searches trying to figure this out myself&#8230;</p>
<p><span id="more-43"></span></p>
<p>I have a server with <a href="http://www.servint.com">ServInt</a>, which runs WebHost Manager (WHM) and cPanel.  I logged into phpMyAdmin and it said I was running MySQL 4 instead of 5.  Wanting to upgrade to MySQL 5, I went into WHM and used cPanel-&gt;Upgrade to Latest Version and Software-&gt;Update Server Software.  This updated everything just fine and it said I was running MySQL 5 (and doing &#8220;SELECT VERSION()&#8221; returned 5), even though phpMyAdmin still did not report v5.</p>
<p>I assumed the fact that I was running a very old version of phpMyAdmin was the problem.  Since I couldn&#8217;t find anyway to automatically upgrade phpMyAdmin in WHM/cPanel, I did the following, which tries to use your existing phpMyAdmin config file:</p>
<pre># wget -O /usr/local/cpanel/base/3rdparty/phpMyAdmin-3.1.2-all-languages.tar.gz http://dfn.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-3.1.2-all-languages.tar.gz
# tar xzf /usr/local/cpanel/base/3rdparty/phpMyAdmin-3.1.2-all-languages.tar.gz -C /usr/local/cpanel/base/3rdparty/
# cd /usr/local/cpanel/base/3rdparty/
# rm -f phpMyAdmin-3.1.2-all-languages.tar.gz
# cp -R phpMyAdmin phpMyAdmin-backup
# cp phpMyAdmin/config.inc.php phpMyAdmin-3.1.2-all-languages/config.inc.php
# mv phpMyAdmin phpMyAdmin-old
# mv phpMyAdmin-3.1.2-all-languages phpMyAdmin</pre>
<p>And then I got an error in phpMyAdmin, and seeing nothing significant in my old config file, did this to use the sample that comes with the new version:</p>
<pre># rm phpMyAdmin/config.inc.php
# cp phpMyAdmin/config.sample.inc.php phpMyAdmin/config.inc.php</pre>
<p>Then phpMyAdmin worked just fine, and the new version differentiates between Server version (which was now correct) and PHP Client version (which didn&#8217;t sound right).  I checked phpinfo() and the PHP MySQL client version was 5, but I read that I would have to recompile PHP.  I took the opportunity to upgrade from Apache 1 to 2 and to the latest release of PHP 5, all done using EasyApache under WHM-&gt;Softare.</p>
<p>With PHP upgraded and recompiled, I then went ahead and launched phpMyAdmin again.  It still gives the warning, <em>&#8220;Your PHP MySQL library version 4.1.22 differs from your MySQL server version 5.0.67. This may cause unpredictable behavior.&#8221;</em>, which is what I was trying to get rid of, but now I give up.  I know my MySQL client and server versions are both 5, so if anyone knows how to fix that warning let me know.</p>
<p>Let me know if you know why phpMyAdmin gives this warning.</p>
<p>PS, I also did this:
<pre>#vi phpMyAdmin/config.inc.php</pre>
<p> and added a random string under blowfish_secret. </p>
]]></content:encoded>
			<wfw:commentRss>http://philfreo.com/blog/upgrading-mysql-php-mysql-client-version-phpmyadmin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
