<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7552105022149771178</id><updated>2011-04-21T17:35:46.057-07:00</updated><title type='text'>reset pswd mysql</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://reset-pwd-mysql.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552105022149771178/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://reset-pwd-mysql.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>RiaQ</name><uri>http://www.blogger.com/profile/02219056924149750665</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7552105022149771178.post-8675638472181030375</id><published>2009-01-28T09:25:00.001-08:00</published><updated>2009-01-28T09:25:45.414-08:00</updated><title type='text'></title><content type='html'>If you have never set a root password for MySQL, the server does not require a password at all for connecting as root. However, it is recommended to set a password for each account. See Section 5.3.1, “General Security Guidelines”. &lt;br /&gt;&lt;br /&gt;If you set a root password previously, but have forgotten what it was, you can set a new password. The next two sections show procedures for Windows and Unix systems, respectively. &lt;br /&gt;&lt;br /&gt;B.1.4.1.1. Resetting the Root Password on Windows Systems&lt;br /&gt;The procedure for resetting the MySQL root account's password on Windows is as follows: &lt;br /&gt;&lt;br /&gt;Log on to your system as Administrator. &lt;br /&gt;&lt;br /&gt;Stop the MySQL server if it is running. For a server that is running as a Windows service, go to the Services manager: &lt;br /&gt;&lt;br /&gt;Start Menu -&gt; Control Panel -&gt; Administrative Tools -&gt; Services&lt;br /&gt;Then find the MySQL service in the list, and stop it. &lt;br /&gt;&lt;br /&gt;If your server is not running as a service, you may need to use the Task Manager to force it to stop. &lt;br /&gt;&lt;br /&gt;Create a text file and place the following command within it on a single line: &lt;br /&gt;&lt;br /&gt;SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword');&lt;br /&gt;Save the file with any name. For this example the file will be C:\mysql-init.txt. &lt;br /&gt;&lt;br /&gt;Open a console window to get to the DOS command prompt: &lt;br /&gt;&lt;br /&gt;Start Menu -&gt; Run -&gt; cmd&lt;br /&gt;We are assuming that you installed MySQL to C:\mysql. If you installed MySQL to another location, adjust the following commands accordingly. &lt;br /&gt;&lt;br /&gt;At the DOS command prompt, execute this command: &lt;br /&gt;&lt;br /&gt;C:\&gt; C:\mysql\bin\mysqld-nt --init-file=C:\mysql-init.txt&lt;br /&gt;The contents of the file named by the --init-file option are executed at server startup, changing the root password. After the server has started successfully, you should delete C:\mysql-init.txt. &lt;br /&gt;&lt;br /&gt;If you install MySQL using the MySQL Installation Wizard, you may need to specify a --defaults-file option: &lt;br /&gt;&lt;br /&gt;C:\&gt; "C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt.exe"&lt;br /&gt;         --defaults-file="C:\Program Files\MySQL\MySQL Server 5.0\my.ini"&lt;br /&gt;         --init-file=C:\mysql-init.txt&lt;br /&gt;The appropriate --defaults-file setting can be found using the Services Manager: &lt;br /&gt;&lt;br /&gt;Start Menu -&gt; Control Panel -&gt; Administrative Tools -&gt; Services&lt;br /&gt;Find the MySQL service in the list, right-click on it, and choose the Properties option. The Path to executable field contains the --defaults-file setting. &lt;br /&gt;&lt;br /&gt;Stop the MySQL server, then restart it in normal mode again. If you run the server as a service, start it from the Windows Services window. If you start the server manually, use whatever command you normally use. &lt;br /&gt;&lt;br /&gt;You should be able to connect using the new password.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552105022149771178-8675638472181030375?l=reset-pwd-mysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://reset-pwd-mysql.blogspot.com/feeds/8675638472181030375/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://reset-pwd-mysql.blogspot.com/2009/01/if-you-have-never-set-root-password-for.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552105022149771178/posts/default/8675638472181030375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552105022149771178/posts/default/8675638472181030375'/><link rel='alternate' type='text/html' href='http://reset-pwd-mysql.blogspot.com/2009/01/if-you-have-never-set-root-password-for.html' title=''/><author><name>RiaQ</name><uri>http://www.blogger.com/profile/02219056924149750665</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
