<?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>x83.net &#187; mysqladmin</title>
	<atom:link href="http://www.x83.net/tag/mysqladmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x83.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 13:53:33 +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>Change mysql password</title>
		<link>http://www.x83.net/change-mysql-password/</link>
		<comments>http://www.x83.net/change-mysql-password/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 20:01:47 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqladmin]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.x83.net/blog/?p=124</guid>
		<description><![CDATA[Setting up mysql password is one of the essential tasks. root user is MySQL admin account. Please note that Linux / UNIX login root account for your operating system and MySQL root are different. They are separate and nothing to do with each other (indeed some admin removes root account and setup admin as mysql [...]]]></description>
			<content:encoded><![CDATA[<p>Setting up mysql password is one of the essential tasks. root user is MySQL admin account. Please note that Linux / UNIX login root account for your operating system and MySQL root are different. They are separate and nothing to do with each other (indeed some admin removes root account and setup admin as mysql super user).</p>
<p><strong>Mysqladmin</strong></p>
<p>If you have never set a root password for MySQL, the server does not require a password at all for connecting as root. To setup root password for first time, use mysqladmin command at shell prompt as follows:</p>
<p> $ mysqladmin -u root password NEWPASSWORD</p>
<p>However, if you want to change (or update) a root password, then you need to use following command</p>
<p> $ mysqladmin -u root -p oldpassword newpass</p>
<p>Enter password:</p>
<p>To change a normal user password you need to type (let us assume you would like to change password for user):</p>
<p> $ mysqladmin -u user -p oldpassword newpass</p>
<p> $ mysqladmin –user=root –password=’my_old_password’ password ‘my_new_password’</p>
<p><strong>Change using mysql sql command</strong></p>
<p>This is another method. MySQL stores username and passwords in user table inside MySQL database. You can directly update password using the following method to update or change password for user test:</p>
<p>1) Login to mysql server, type following command at shell prompt:</p>
<p> $ mysql -u root -p</p>
<p>2) Use mysql database (type command at mysql> prompt):</p>
<p> mysql> use mysql;</p>
<p>3) Change password for user vivek:</p>
<p> mysql> update user set password=PASSWORD(&#8220;NEWPASSWORD&#8221;) where User=&#8217;test&#8217;;</p>
<p>4) Reload privileges:</p>
<p> mysql> flush privileges;<br />
 mysql> quit</p>
<p><strong>Remove root pass</strong></p>
<p> mysqladmin -u root -p password ”</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/change-mysql-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

