<?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>KP Solutions &#187; mysql</title>
	<atom:link href="http://www.kpsolution.com/blog/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kpsolution.com/blog</link>
	<description>Solutions for Day to Day Technical Problems</description>
	<lastBuildDate>Tue, 24 Aug 2010 02:37:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Unable to load dynamic library php_mysql.dll</title>
		<link>http://www.kpsolution.com/blog/php/unable-to-load-dynamic-library-php_mysql-dll/63/</link>
		<comments>http://www.kpsolution.com/blog/php/unable-to-load-dynamic-library-php_mysql-dll/63/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 02:37:51 +0000</pubDate>
		<dc:creator>Ketan Patel</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.kpsolution.com/blog/?p=63</guid>
		<description><![CDATA[While trying to setup Apache, PHP and MySql on your development machine or server, you may face several hurdles and one of them would be unable to load the mysql library. On my windows development machine, I got a problem &#8230; <a href="http://www.kpsolution.com/blog/php/unable-to-load-dynamic-library-php_mysql-dll/63/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While trying to setup Apache, PHP and MySql on your development machine or server, you may face several hurdles and one of them would be unable to load the mysql library. On my windows development machine, I got a problem while trying to load mysql library. I got following error:</p>
<blockquote><p>PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;./php_mysql.dll&#8217; &#8211; The specified module could not be found.\r\n in Unknown on line 0</p></blockquote>
<p>The problem is two fold here:</p>
<ol>
<li>The extension directory path is incorrect</li>
<li>And php module isn&#8217;t able to find libmysql.dll</li>
</ol>
<p>To resolve the issue:</p>
<ol>
<li>Update &#8216;extension_dir&#8217; from &#8216;./&#8217; to &#8216;G:/Server/php/ext/&#8217;</li>
<li>Update the &#8216;PATH&#8217; variable on your computer to include the PHP directory (G:\Server\php) in my case.</li>
</ol>
<p>Hope this will save you time and trouble of finding a proper solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kpsolution.com/blog/php/unable-to-load-dynamic-library-php_mysql-dll/63/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysqld.log grows too big in size</title>
		<link>http://www.kpsolution.com/blog/linux/mysqldlog-grows-too-big-in-size/12/</link>
		<comments>http://www.kpsolution.com/blog/linux/mysqldlog-grows-too-big-in-size/12/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 14:03:03 +0000</pubDate>
		<dc:creator>Ketan Patel</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.kpsolution.com/blog/?p=12</guid>
		<description><![CDATA[Recently on one of our new servers, we had an issue where the mysql daemon had halted on bus error. We couldn&#8217;t stop the mysql daemon using /etc/init.d/mysqld stop Then I looked at the error-log file for mysql in /var/log/mysql-error.log &#8230; <a href="http://www.kpsolution.com/blog/linux/mysqldlog-grows-too-big-in-size/12/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently on one of our new servers, we had an issue where the mysql daemon had halted on bus error. We couldn&#8217;t stop the mysql daemon using</p>
<blockquote><p>/etc/init.d/mysqld stop</p></blockquote>
<p>Then I looked at the error-log file for mysql in /var/log/mysql-error.log and found that the disk didn&#8217;t had any empty space left and correctly enough, when I did</p>
<blockquote><p>df -h</p></blockquote>
<p>I saw that the /var mounted partition didn&#8217;t had any diskspace remaining. To find the exact culprit I looked around in the /var directory and found that the &#8216;mysqld.log&#8217; file was 9GB large. I was puzzled as to how come this log grew so big. Thoughts came that the server would have been compromised but the actual culprit was the my.cnf file for the mysql. During the setup of the server, by mistake I had put a statement</p>
<blockquote><p>[mysqld]</p>
<p>log=/var/log/mysqld.log</p></blockquote>
<p>This configuration was causing to save all the queries that were performed on the mysql server since it booted. Naturally on a high traffic site, you will see this file grow huge quickly. I learned the lesson hard way, but always RTFM when you are configuring something on the production server. So for solution, all I had to was remove the mysqld.log file and comment out the above &#8220;log&#8221; configuration in the my.cnf.</p>
<p>I thought to post this out there to help other people in case they have the same issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kpsolution.com/blog/linux/mysqldlog-grows-too-big-in-size/12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
