<?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>Webmaster Sucks &#187; mysql error</title>
	<atom:link href="http://www.webmastersucks.com/tags/mysql-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmastersucks.com</link>
	<description>Here I share stuff I used to suck at as a novice webmaster..</description>
	<lastBuildDate>Mon, 13 Jun 2011 06:39:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Php 5.2.9 Updated But Mysql Doesnt Work</title>
		<link>http://www.webmastersucks.com/php-5-2-9-updated-but-mysql-doesnt-work/</link>
		<comments>http://www.webmastersucks.com/php-5-2-9-updated-but-mysql-doesnt-work/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 18:54:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[enablerepo]]></category>
		<category><![CDATA[mysql error]]></category>
		<category><![CDATA[mysql install]]></category>
		<category><![CDATA[mysql upgrade]]></category>
		<category><![CDATA[php 5.2.9]]></category>
		<category><![CDATA[php error]]></category>
		<category><![CDATA[php install]]></category>
		<category><![CDATA[php modules]]></category>
		<category><![CDATA[php upgrade]]></category>
		<category><![CDATA[php-mysql upgrade]]></category>
		<category><![CDATA[remi]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=151</guid>
		<description><![CDATA[
			
				
			
		
I blogged Php 5.2.9 Upgrade. Some of my user updated with using this entry. But i miss something in these entry. Firstly, i have to say. If you upgrade php version, you have to upgrade mysql and php-mysql.
To Upgrade Mysql and Php-Mysql tool


yum --enablerepo=remi update mysql*
yum --enablerepo=remi update php-mysql

And there one more thing, he was [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fphp-5-2-9-updated-but-mysql-doesnt-work%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fphp-5-2-9-updated-but-mysql-doesnt-work%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I blogged <a href="/update-php-to-529-in-centos/" target="_blank">Php 5.2.9 Upgrade</a>. Some of my user updated with using this entry. But i miss something in these entry. Firstly, i have to say. If you upgrade php version, you have to upgrade mysql and php-mysql.</p>
<p><strong>To Upgrade Mysql and Php-Mysql tool<br />
</strong>
<pre class="brush: plain; title: ;">
yum --enablerepo=remi update mysql*
yum --enablerepo=remi update php-mysql
</pre>
<p>And there one more thing, he was php4 and upgrade to 5. Firstly we can not upgrade, we install php newly.</p>
<p><strong>Installing Php</strong></p>
<pre class="brush: plain; title: ;">yum --enablerepo=remi install php</pre>
<p>When you install on old version, there will be somethings to change.  Their extentions directory are different<br />
<strong>Old One<br />
</strong>extension_dir = /usr/lib/php4</p>
<p><strong>New one (Php 5)<br />
</strong>extension_dir = /usr/lib/php/modules</p>
<p><strong>And i restarted services</strong></p>
<pre class="brush: plain; title: ;">/etc/init.d/mysqld restart
/etc/init.d/httpd restart</pre>
<p>I get error in httpd restart</p>
<blockquote><p>PHP Warning:  Module &#8216;mysql&#8217; already loaded in Unknown on line 0<br />
PHP Warning:  Module &#8216;mysqli&#8217; already loaded in Unknown on line 0</p></blockquote>
<p>Because mysql is standart module in php5, we dont need load mysql in config file. I change php.ini file (/etc/php.ini) Only i add ; character, it is for comments.</p>
<pre class="brush: plain; title: ;">;extension=mysql.so
;extension=mysqli.so</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/php-5-2-9-updated-but-mysql-doesnt-work/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

