<?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>Gökalp Kuşçu &#187; mysql password reset</title>
	<atom:link href="http://www.gokalpkuscu.com/tag/mysql-password-reset/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gokalpkuscu.com</link>
	<description>Aquila Non Captat Muscas</description>
	<lastBuildDate>Wed, 18 Jan 2012 21:05:49 +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>Mysql password reset,change</title>
		<link>http://www.gokalpkuscu.com/mysql-password-resetchange</link>
		<comments>http://www.gokalpkuscu.com/mysql-password-resetchange#comments</comments>
		<pubDate>Sat, 26 Sep 2009 20:08:10 +0000</pubDate>
		<dc:creator>Gökalp Kuşçu</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[mysql password]]></category>
		<category><![CDATA[mysql password reset]]></category>
		<category><![CDATA[password reset]]></category>

		<guid isPermaLink="false">http://www.gokalpkuscu.com/?p=288</guid>
		<description><![CDATA[Q. How do I change MySQL root password under Linux, FreeBSD, OpenBSD and UNIX like operating system over ssh / telnet session? A. 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 [...]]]></description>
			<content:encoded><![CDATA[<p>Q. How do I change MySQL root password under Linux, FreeBSD, OpenBSD and UNIX like operating system over ssh / telnet session?</p>
<p>A. 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).<br />
mysqladmin command to change root password</p>
<p><span id="more-288"></span></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:<br />
Change MySQL password for other user</p>
<p>To change a normal user password you need to type (let us assume you would like to change password for vivek):</p>
<p>$ mysqladmin -u vivek -p oldpassword newpass</p>
<p>Changing MySQL root user password using mysql sql command</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 vivek:</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(”NEWPASSWORD”) where User=’vivek’;</p>
<p>4) Reload privileges:</p>
<p>mysql> flush privileges;<br />
mysql> quit</p>
<p>This method you need to use while using PHP or Perl scripting.</p>
<p>until know , it’s about changing password<br />
how you can reset your mysql pass ?</p>
<p>To be able to modify the existing root password, you must firstly be connected to it. If you know the root password and just want to reinitialize it, you can skip this part. In the case that you don’t have the root password then follow the steps below.<br />
It s is possible to bypass the authentication process and to access MySQL:</p>
<p>Stop the MySQL server.</p>
<p>#/etc/init.d/mysql stop</p>
<p>Restart MySQL, disabling network communication and skipping the authentication procedure.</p>
<p>#mysqld –skip-grant-tables –skip-networking &#038;</p>
<p>Reinitializing the password:</p>
<p>Get connected to the system database (mysql) of MySQL:</p>
<p># mysql mysql -u root</p>
<p>Type in the following command and reset your password</p>
<p>UPDATE user SET password=PASSWORD(’newpassword’) WHERE user=”root”;</p>
<p>If you didn’t go through the first step, to validate the changes simply type:</p>
<p>FLUSH PRIVILEGES;</p>
<p>If you started MySQL manually(bypassing the authentication process), the server must be restarted:</p>
<p>#/etc/init.d/mysql restart</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gokalpkuscu.com/mysql-password-resetchange/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

