<?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>Brilang.commysql | Brilang.com</title>
	<atom:link href="http://www.brilang.com/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.brilang.com</link>
	<description>Stuff I do, or stuff I find interesting</description>
	<lastBuildDate>Fri, 13 Jan 2012 00:25:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Reset the Root Password on MySQL</title>
		<link>http://www.brilang.com/2008/08/reset-the-root-password-on-mysql/198</link>
		<comments>http://www.brilang.com/2008/08/reset-the-root-password-on-mysql/198#comments</comments>
		<pubDate>Mon, 11 Aug 2008 22:17:03 +0000</pubDate>
		<dc:creator>Brian Lang</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.brianlang.ca/?p=198</guid>
		<description><![CDATA[From time to time, you may run across a MySQL database where you don&#8217;t have the root password, but you require it to perform some task or another. In my case, I inherited a MySQL installation but no root password was available. The root password in the records did not work. Here&#8217;s a quick lesson in resetting the root password. NOTE: This only works of you have command line access to your MySQL installation. This is a multi-step process. All steps must be completed to properly re-secure your database. Stop the MySQL process: sudo /etc/init.d/mysql stop Start the MySQL process in safe mode: sudo mysqld_safe --skip-grant-tables &#038; Connect to the MySQL server (no password required): mysql -u root Tell MySQL to use the mysql database: USE mysql; Run this UPDATE query: UPDATE user SET password = PASSWORD("new_root_password") WHERE user='root'; Flush the database Privileges: flush privileges; Exit MySQL: quit Stop the MySQL Server from running in safe mode: sudo /etc/init.d/mysql stop Restart MySQL in normal mode: sudo /etc/init.d/mysql start Try to log in with the new root password: mysql -u root -p If the goal of the exercise is simply to dump the data, you can stop after completing step 3 [...]]]></description>
		<wfw:commentRss>http://www.brilang.com/2008/08/reset-the-root-password-on-mysql/198/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

