<?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>Making Life Simple &#187; mysql</title>
	<atom:link href="http://www.lalitmehta.com/home/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lalitmehta.com/home</link>
	<description></description>
	<lastBuildDate>Thu, 19 Jan 2012 09:13:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Set autoincrement value in mysql</title>
		<link>http://www.lalitmehta.com/home/2011/08/22/set-autoincrement-value-in-mysql/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=set-autoincrement-value-in-mysql</link>
		<comments>http://www.lalitmehta.com/home/2011/08/22/set-autoincrement-value-in-mysql/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 10:59:38 +0000</pubDate>
		<dc:creator>lalit</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.lalitmehta.com/home/?p=176</guid>
		<description><![CDATA[Sometimes it is necessary to set the starting value of MySQL auto-increment value.  This can be set as alter table table_name auto_increment=XXXX where table_name is the name of the table and XXXX is the starting value of auto increment]]></description>
			<content:encoded><![CDATA[<p>Sometimes it is necessary to set the starting value of MySQL auto-increment value.  This can be set as</p>
<p><code>alter table table_name auto_increment=XXXX</code></p>
<p>where table_name is the name of the table and XXXX is the starting value of auto increment</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lalitmehta.com/home/2011/08/22/set-autoincrement-value-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL export/import database</title>
		<link>http://www.lalitmehta.com/home/2011/06/09/mysql-exportimport-database/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mysql-exportimport-database</link>
		<comments>http://www.lalitmehta.com/home/2011/06/09/mysql-exportimport-database/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 14:06:49 +0000</pubDate>
		<dc:creator>lalit</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.lalitmehta.com/home/?p=167</guid>
		<description><![CDATA[The easiest way to export is use syntax in command prompt (cmd): mysqldump -u USER -p PASSWORD DATABASE > filename.sql To import the same file, the syntax is: mysql -u USER -p PASSWORD DATABASE < filename.sql]]></description>
			<content:encoded><![CDATA[<p>The easiest way to export is use syntax in command prompt (cmd):<br />
<code>mysqldump -u USER -p PASSWORD DATABASE > filename.sql </code></p>
<p>To import the same file, the syntax is:<br />
<code>mysql -u USER -p PASSWORD DATABASE < filename.sql</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lalitmehta.com/home/2011/06/09/mysql-exportimport-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL server has gone away</title>
		<link>http://www.lalitmehta.com/home/2011/03/03/mysql-server-has-gone-away-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mysql-server-has-gone-away-2</link>
		<comments>http://www.lalitmehta.com/home/2011/03/03/mysql-server-has-gone-away-2/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 12:32:03 +0000</pubDate>
		<dc:creator>lalit</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.lalitmehta.com/home/?p=156</guid>
		<description><![CDATA[While importing a mysql dump file, I was receiving an error &#8220;MySQL server has gone away&#8221;. The reason is that the maximum allowed packet size was less than the dump file size. Edit &#8220;my.ini&#8221; file and update the value for max_allowed_packet = XXM where XX is the maximum size. This should fix the issue.]]></description>
			<content:encoded><![CDATA[<p>While importing a mysql dump file, I was receiving an error &#8220;MySQL server has gone away&#8221;.  The reason is that the maximum allowed packet size was less than the dump file size.</p>
<p>Edit &#8220;my.ini&#8221; file and update the value for<br />
max_allowed_packet = XXM<br />
where XX is the maximum size.</p>
<p>This should fix the issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lalitmehta.com/home/2011/03/03/mysql-server-has-gone-away-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recover MySQL root password</title>
		<link>http://www.lalitmehta.com/home/2008/12/26/recover-mysql-root-password/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=recover-mysql-root-password</link>
		<comments>http://www.lalitmehta.com/home/2008/12/26/recover-mysql-root-password/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 16:10:53 +0000</pubDate>
		<dc:creator>lalit</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.lalitmehta.com/home/?p=63</guid>
		<description><![CDATA[You can recover MySQL database server password with following five easy steps. Step # 1: Stop the MySQL server process. Step # 2: Start the MySQL (mysqld) server/daemon process with the &#8211;skip-grant-tables option so that it will not prompt for password Step # 3: Connect to mysql server as the root user Step # 4: [...]]]></description>
			<content:encoded><![CDATA[<p>You can recover MySQL database server password with following five easy steps.<br />
Step # 1: Stop the MySQL server process.<br />
Step # 2: Start the MySQL (mysqld) server/daemon process with the &#8211;skip-grant-tables option so that it will not prompt for password<br />
Step # 3: Connect to mysql server as the root user<br />
Step # 4: Setup new root password<br />
Step # 5: Exit and restart MySQL server</p>
<p>Here are commands you need to type for each step (login as the root user):<br />
Step # 1 : Stop mysql service<br />
<code># /etc/init.d/mysql stop</code><br />
Output:<br />
<code>Stopping MySQL database server: mysqld.</code></p>
<p>Step # 2: Start to MySQL server w/o password:<br />
<code># mysqld_safe --skip-grant-tables &amp;</code><br />
Output:<br />
<code>[1] 5988<br />
Starting mysqld daemon with databases from /var/lib/mysql<br />
mysqld_safe[6025]: started</code></p>
<p>Step # 3: Connect to mysql server using mysql client:<br />
<code># mysql -u root</code><br />
Output:<br />
<code>Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 1 to server version: 4.1.15-Debian_1-log</code></p>
<p>Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.</p>
<p>mysql&gt;</p>
<p>Step # 4: Setup new MySQL root user password<br />
<code>mysql&gt; use mysql;<br />
mysql&gt; update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';<br />
mysql&gt; flush privileges;<br />
mysql&gt; quit</code></p>
<p>Step # 5: Stop MySQL Server:<br />
<code># /etc/init.d/mysql stop</code><br />
Output:<br />
<code>Stopping MySQL database server: mysqld<br />
STOPPING server from pid file /var/run/mysqld/mysqld.pid<br />
mysqld_safe[6186]: ended</code></p>
<p>[1]+  Done                    mysqld_safe &#8211;skip-grant-tables</p>
<p>Step # 6: Start MySQL server and test it<br />
<code># /etc/init.d/mysql start<br />
# mysql -u root -p</code></p>
<p><a href="http://www.cyberciti.biz/tips/recover-mysql-root-password.html" target="_blank">original post</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lalitmehta.com/home/2008/12/26/recover-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

