{"id":307,"date":"2007-07-09T19:44:12","date_gmt":"2007-07-10T00:44:12","guid":{"rendered":"http:\/\/192.168.33.66\/wp\/?p=307"},"modified":"2007-07-09T19:44:12","modified_gmt":"2007-07-10T00:44:12","slug":"how-to-reset-a-mysql-password-in-5-easy-steps","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=307","title":{"rendered":"How to Reset a MySQL Password in 5 Easy Steps"},"content":{"rendered":"<p>How to Reset a MySQL Password in 5 Easy Steps<\/p>\n<p>   1. Stop the mysqld daemon process.<br \/>\n   2. Start the mysqld daemon process with the &#8211;skip-grant-tables option.<br \/>\n   3. Start the mysql client with the -u root option.<br \/>\n   4. Execute the UPDATE mysql.user SET Password=PASSWORD(&#8216;password&#8217;) WHERE User=&#8217;root&#8217;;<br \/>\n   5. Execute the FLUSH PRIVILEGES; command.<br \/>\n<!--more--><\/p>\n<p>[root@localhost init.d]# .\/mysqld stop<br \/>\nStopping MySQL:                                            [  OK  ]<\/p>\n<p>[root@localhost init.d]# .\/mysqld start &#8211;skip-grant-tables<br \/>\n[root@localhost init.d]# mysql -u root -p<br \/>\nEnter password:<br \/>\nWelcome to the MySQL monitor.  Commands end with ; or \\g.<br \/>\nYour MySQL connection id is 4 to server version: 4.1.20<\/p>\n<p>Type &#8216;help;&#8217; or &#8216;\\h&#8217; for help. Type &#8216;\\c&#8217; to clear the buffer.<br \/>\nmysql> connect cacti<br \/>\nReading table information for completion of table and column names<br \/>\nYou can turn off this feature to get a quicker startup with -A<\/p>\n<p>Connection id:    25<br \/>\nCurrent database: cacti<\/p>\n<p>mysql> update user_auth set password=md5(&#8216;admin&#8217;) where username=&#8217;admin&#8217;;<br \/>\nQuery OK, 1 row affected (0.00 sec)<br \/>\nRows matched: 1  Changed: 1  Warnings: 0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Reset a MySQL Password in 5 Easy Steps 1. Stop the mysqld daemon process. 2. Start the mysqld daemon process with the &#8211;skip-grant-tables option. 3. Start the mysql client with the -u root option. 4. Execute the UPDATE &#8230; <a class=\"more-link\" href=\"http:\/\/www.wildow.com\/blog\/?p=307\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-307","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=307"}],"version-history":[{"count":0,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/307\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}