{"id":145,"date":"2020-07-31T12:18:30","date_gmt":"2020-07-31T10:18:30","guid":{"rendered":"https:\/\/www.eversys.cz\/?p=145"},"modified":"2020-08-01T08:14:40","modified_gmt":"2020-08-01T06:14:40","slug":"recover-your-mysql-password","status":"publish","type":"post","link":"https:\/\/www.eversys.cz\/index.php\/2020\/07\/31\/recover-your-mysql-password\/","title":{"rendered":"Recover your MySQL password"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>What if you&#8217;ve forgotten your MySQL root user password? This could be quite the predicament &#8230; had the developers not thought of that eventuality. In order to recover the password, you simply have to follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Stop the MySQL server process with the command sudo service mysql stop<\/li><li>sudo mkdir \/var\/run\/mysqld<\/li><li>sudo chown mysql:mysql \/var\/run\/mysqld<\/li><li>Start the MySQL server with the command <em>sudo mysqld_safe &#8211;skip-grant-tables &#8211;skip-networking &amp;<\/em><\/li><li>Connect to the MySQL server as the root user with the command <em>mysql -u root<\/em><\/li><\/ol>\n\n\n\n<p>At this point, you need to issue the following MySQL commands to reset the root password:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql&gt; use mysql;\n\u200bmysql&gt; update user set authentication_string=password('NEWPASSWORD') where user='root';\n\u200bmysql&gt; flush privileges;\n\u200bmysql&gt; quit<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What if you&#8217;ve forgotten your MySQL root user password? This could be quite the predicament &#8230; had the developers not thought of that eventuality. In order to recover the password, you simply have to follow these steps: Stop the MySQL server process with the command sudo service mysql stop sudo mkdir \/var\/run\/mysqld sudo chown mysql:mysql [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-145","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/posts\/145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/comments?post=145"}],"version-history":[{"count":0,"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/posts\/145\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/media?parent=145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/categories?post=145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/tags?post=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}