<?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>Ramkumar K R &#187; MySQL</title>
	<atom:link href="http://www.ramkumarkr.com/category/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ramkumarkr.com</link>
	<description>Another online scratchpad!</description>
	<lastBuildDate>Tue, 03 Aug 2010 10:29:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Create a new MySQL user &#8211; Howto?</title>
		<link>http://www.ramkumarkr.com/create-a-new-mysql-user-howto.html</link>
		<comments>http://www.ramkumarkr.com/create-a-new-mysql-user-howto.html#comments</comments>
		<pubDate>Thu, 22 May 2008 05:48:14 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/create-a-new-mysql-user-howto/</guid>
		<description><![CDATA[There are few ways you can create a new user for a MySQL DB. Using grant command to create a new user and assign privileges to access a DB. Use the create user mysql command followed by grant command to set access privileges. Directly editing the mysql DB using insert, update etc (which is a [...]]]></description>
			<content:encoded><![CDATA[<p>There are few ways you can create a new user for a MySQL DB.</p>
<ol>
<li>Using grant command to create a new user and assign privileges to access a DB.</li>
<li> Use the <strong>create</strong> user mysql command followed by <strong>grant</strong> command to set access privileges.</li>
<li>Directly editing the mysql DB using insert, update etc (which is a bit complex)</li>
</ol>
<p><strong>Create USER</strong></p>
<p>For creating user following command is used</p>
<pre>CREATE USER <em><code>user</code></em> [IDENTIFIED BY [PASSWORD] '<em><code>password</code></em>']</pre>
<p>The above command creates a new user, but who has no access to any DB. In order to grant prermissions to access any DB, we need to use the grant command.</p>
<p><strong>Grant Command </strong></p>
<pre>GRANT ALL ON *.* TO 'someuser'@'somehost';</pre>
<p>The above will grant ALL the permission (select, insert, updat, delet etc) to someuser at somehost. If you would like to set a user from a particular IP to access the DB, you can use like</p>
<pre>GRANT ALL ON *.* TO 'someuser'@'IPADDRESS';</pre>
<p>The following command will give only select and insert privileges to someuser at somehost</p>
<pre>GRANT SELECT, INSERT ON *.* TO 'someuser'@'somehost';</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/create-a-new-mysql-user-howto.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Starting LAMPP automatically on startup</title>
		<link>http://www.ramkumarkr.com/starting-lampp-automatically-on-startup.html</link>
		<comments>http://www.ramkumarkr.com/starting-lampp-automatically-on-startup.html#comments</comments>
		<pubDate>Thu, 03 Apr 2008 09:54:54 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/starting-lampp-automatically-on-startup/</guid>
		<description><![CDATA[For starting LAMPP automatically on startup, add the following line to you /etc/rc.local file /opt/lampp/lampp start where /opt/lampp is the location where XAMPP files are kept. You will have to substitute the path to your XAMPP in the above command. Do let me know whether it worked for you]]></description>
			<content:encoded><![CDATA[<p>For starting LAMPP automatically on startup, add the following line to you /etc/rc.local file</p>
<p>/opt/lampp/lampp start</p>
<p>where /opt/lampp is the location where XAMPP files are kept. You will have to substitute the path to your XAMPP in the above command.</p>
<p>Do let me know whether it worked for you <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/starting-lampp-automatically-on-startup.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to access mysql command mode in XAMPP</title>
		<link>http://www.ramkumarkr.com/how-to-access-mysql-command-mode-in-xampp.html</link>
		<comments>http://www.ramkumarkr.com/how-to-access-mysql-command-mode-in-xampp.html#comments</comments>
		<pubDate>Mon, 10 Mar 2008 11:06:44 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/how-to-access-mysql-command-mode-in-xampp/</guid>
		<description><![CDATA[I had searched for some time for the same thing.. But here it is.. This is only in the case of a linux system.. Say your XAMPP files are at /opt/lampp On command line, type (assuming you want to log in as root) /opt/lampp/bin/mysql -u root -p This will be followed by typing the mysql [...]]]></description>
			<content:encoded><![CDATA[<p>I had searched for some time for the same thing.. But here it is..</p>
<p>This is only in the case of a linux system..</p>
<p>Say your XAMPP files are at /opt/lampp</p>
<p>On command line, type (assuming you want to log in as root)<br />
/opt/lampp/bin/mysql -u root -p</p>
<p>This will be followed by typing the mysql password, thats it.. You are on command mode of mysql !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/how-to-access-mysql-command-mode-in-xampp.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to change root password in mysql ?</title>
		<link>http://www.ramkumarkr.com/how-to-change-root-password-in-mysql.html</link>
		<comments>http://www.ramkumarkr.com/how-to-change-root-password-in-mysql.html#comments</comments>
		<pubDate>Wed, 27 Feb 2008 11:08:33 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/how-to-change-root-password-in-mysql/</guid>
		<description><![CDATA[You might have installed mysql and would like to change / set password for root. Password for root might be empty initially.. So this is what you need to do. There is a mysqladmin command in unix,linux,freebsd to administer mysql. Setting root password for mysql for the first time Here the initial password is empty. [...]]]></description>
			<content:encoded><![CDATA[<p>You might have installed mysql and would like to change / set password for root. Password for root might be empty initially.. So this is what you need to do.</p>
<p>There is a mysqladmin command in unix,linux,freebsd to administer mysql.</p>
<p><strong>Setting root password for mysql for the first time</strong></p>
<p>Here the initial password is empty. Type the following comman.</p>
<blockquote><p>mysqladmin -u root password <strong>YOURNEWPASSWORD</strong></p></blockquote>
<p>Here YOURNEWPASSWORD is the password you would like to set.</p>
<p>Alternatively, on command line, log in to mysql as root. This time password is not required. Then run an update query to update the password of root.</p>
<blockquote><p>mysql -u root</p></blockquote>
<blockquote><p>update mysql.user set password=&#8217;NEWPASSWORD&#8217; where user=&#8217;root&#8217;</p></blockquote>
<p><strong>Changing root/user password </strong></p>
<p>Run the following command to change password for root. Replace root with the user name of other users in order to change their password.</p>
<blockquote><p>mysqladmin -u root <strong>OLDPASSWORD NEWPASSWORD</strong></p></blockquote>
<p>OLDPASSWORD is old password and NEWPASSWORD is the new password.</p>
<p>Alternatively you can run the above query to modify the user password (see above).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/how-to-change-root-password-in-mysql.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XAMPP an easy LAMP installation solution</title>
		<link>http://www.ramkumarkr.com/xampp-an-easy-lamp-installation-solution.html</link>
		<comments>http://www.ramkumarkr.com/xampp-an-easy-lamp-installation-solution.html#comments</comments>
		<pubDate>Mon, 25 Feb 2008 10:08:49 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/xampp-an-easy-lamp-installation-solution/</guid>
		<description><![CDATA[Earlier I had messed up my LAMP test server trying to upgrade PHP from 4 to 5 and it was a real headache till I got everything to work.. Someone asked me a question &#8211; is there a simple way to install everything (Apache, MySQL PHP with necessary modules) in one shot without configuring each [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier I had <a href="http://ramkumar.lifeatsearch.com/messed-up-my-lamp-test-server/" title="Messed up my LAMP test server">messed up my LAMP test serve</a>r trying to upgrade PHP from 4 to 5 and it was a real headache till I got everything to work..</p>
<p>Someone asked me a question &#8211; is there a simple way to install everything (Apache, MySQL PHP with necessary modules) in one shot without configuring each and everything manually.. I had no clue that time but I understood that there is a solution for this..</p>
<p>Just browsed http://www.apachefriends.org/en/xampp.html and found proof that there is a solution available.</p>
<p>Have you tried this? I have to mess up my server again if I have to test this <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  So let me see when time permits <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />    <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[Update] There wasn&#8217;t mysql enabled on PHP5 when I installed RHEL5 afresh. So I had to remove the rpms of PHP, stop httpd,vsftpd and mysqld forever. Installed XAMPP and everything is working perfectly now..</p>
<p>There is a bit of security issues in XAMPP (Not so big if you take care). So read their documents properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/xampp-an-easy-lamp-installation-solution.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fatal error: Call to undefined function mysql_connect() !!</title>
		<link>http://www.ramkumarkr.com/fatal-error-call-to-undefined-function-mysql_connect.html</link>
		<comments>http://www.ramkumarkr.com/fatal-error-call-to-undefined-function-mysql_connect.html#comments</comments>
		<pubDate>Wed, 13 Feb 2008 05:39:28 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/fatal-error-call-to-undefined-function-mysql_connect/</guid>
		<description><![CDATA[I was about to start using my first program on PHP5, then I received this irritating message. I was using PHP4 these days, so this error was something which revisited after a long time. In PHP4 I new what it means and how to rectify. The error indicates that PHP was unable to connect to [...]]]></description>
			<content:encoded><![CDATA[<p>I was about to start using my first program on PHP5, then I received this irritating message.</p>
<p>I was using PHP4 these days, so this error was something which revisited after a long time. In PHP4 I new what it means and how to rectify.</p>
<p>The error indicates that PHP was unable to connect to the MySQL DB and it is basically an error on the PHP installation/ missing library file.</p>
<p>Generally, one need to check following things in order to troubleshoot the current situation.</p>
<p>Is it PHP5 on which this error happened and are its after you migrated to PHP5? If then, one small peiece of information for you. MySQL support is not enabled by default in PHP5. You can read http://in.php.net/manual/en/faq.databases.php#faq.databases.mysql.php5 for the reasons and how to troubleshoot.</p>
<p>Following are some other basic troubleshooting steps.</p>
<p><strong>Windows System</strong></p>
<ol>
<li>Make sure in your PHP.ini file , the mysql extension is enabled. Look for a line containing &#8216;extension=php_mysql.dll&#8217; and if there is a semicolon in front of this, its not enabled. So remove the semicolon to enable it.</li>
<li>Check for the extension directory path in php.ini &#8211; &#8216;extension_dir = &#8220;C:\Program Files\PHP5\ext&#8221;&#8216; . make sure the path is correct, and you have the extension files in it. For mysql extension, you will need php_mysql.dll .</li>
</ol>
<p>With this much, if mysql is present, you should not be seeing the error message again</p>
<p><strong>Linux System</strong></p>
<p>Make sure PHP is compiled with mysql support. Check http://in.php.net/mysql on the installation instructions.</p>
<p>If you are using PHP5 , mysql is not enabled by default <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  (This is where the problem starts). So if you have PHP already installed, consider removing it and recompiling from the source with mysql support.</p>
<p>There are easier methods to set up LAMP systems. Please check  <a href="http://ramkumar.lifeatsearch.com/xampp-an-easy-lamp-installation-solution/" title="XAMPP">my post about XAMPP</a> too</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/fatal-error-call-to-undefined-function-mysql_connect.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Storage Engines.. Some basics</title>
		<link>http://www.ramkumarkr.com/mysql-storage-engines-some-basics.html</link>
		<comments>http://www.ramkumarkr.com/mysql-storage-engines-some-basics.html#comments</comments>
		<pubDate>Thu, 13 Dec 2007 05:25:33 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/mysql-storage-engines-some-basics/</guid>
		<description><![CDATA[Storage engines decide how and where the data is stored and in which way. MySQL storage engines include both those that handle transaction-safe tables and those that handle non-transaction-safe tables MySQL supports following storage engines. MyISAM Storage Engine InnoDB Storage Engine MERGE Storage Engine MEMORY (HEAP) Storage Engine BDB (BerkeleyDB) Storage Engine EXAMPLE Storage Engine [...]]]></description>
			<content:encoded><![CDATA[<p>Storage engines decide how and where the data is stored and in which way. MySQL storage engines include both those that     handle transaction-safe tables and those that handle     non-transaction-safe tables</p>
<p>MySQL supports following storage engines.</p>
<p>MyISAM Storage Engine<br />
InnoDB Storage Engine<br />
MERGE Storage Engine<br />
MEMORY (HEAP) Storage Engine<br />
BDB (BerkeleyDB) Storage Engine<br />
EXAMPLE Storage Engine<br />
FEDERATED Storage Engine<br />
ARCHIVE Storage Engine<br />
CSV Storage Engine<br />
BLACKHOLE Storage Engine</p>
<p>One may choose a storage engine depending on the development requirement.</p>
<p>For example  &#8211; MyISAM is a disk based storage engine. Aiming for very low overhead, it  does not support transactions <strong>where as</strong>  InnoDB is also disk based, but offers versioned, fully ACID transactional  capabilities. InnoDB requires more disk space than MyISAM to store its data,  and this increased overhead is compensated by more aggressive use of memory  caching, in order to attain high speeds. The CSV storage engine stores data in CSV format.</p>
<p>Thats some basics about storage engines in MySQL !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/mysql-storage-engines-some-basics.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
