{"id":80,"date":"2014-01-29T13:54:09","date_gmt":"2014-01-29T18:54:09","guid":{"rendered":"http:\/\/etapien.com\/guides\/?p=80"},"modified":"2020-08-24T14:22:37","modified_gmt":"2020-08-24T19:22:37","slug":"how-to-reset-our-wordpress-forgotten-password","status":"publish","type":"post","link":"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/","title":{"rendered":"How to reset your WordPress forgotten password"},"content":{"rendered":"<p>A few days ago I was unable to log into one of my wordpress installations, it was just one of those days, I simply didn&#8217;t remember my password, so for those of you that are going through a similar situation, here is a way to regain access:<\/p>\n<p>Log into your server via ssh and then log into mysql:<\/p>\n<blockquote><p>mysql -u root -p<\/p><\/blockquote>\n<p>It is important to know the id of the user you want to reset the password for, I will show you an example using a username &#8220;testuser&#8221;:<\/p>\n<blockquote><p>SELECT ID, user_login FROM wp_users WHERE user_login=&#8217;testuser&#8217;;<\/p><\/blockquote>\n<p>The result should look similar to this:<\/p>\n<blockquote><p>+&#8212;-+&#8212;&#8212;&#8212;&#8212;+<br \/>\n| ID | user_login |<br \/>\n+&#8212;-+&#8212;&#8212;&#8212;&#8212;+<br \/>\n| 8 | testuser|<br \/>\n+&#8212;-+&#8212;&#8212;&#8212;&#8212;+<br \/>\n1 row in set (0.00 sec)<\/p><\/blockquote>\n<p>If you don&#8217;t know the username or if you get no hits as a result to the above command, an option would be to go through all users that have the word &#8220;testuser&#8221; in them, so we&#8217;ll use an SQL query for this:<\/p>\n<blockquote><p>SELECT ID, user_login FROM wp_users WHERE user_login LIKE &#8216;%testuser%&#8217;;<\/p><\/blockquote>\n<p>This will show you all rows that have the word &#8220;testuser&#8221; in them.<\/p>\n<p>Ok, now that we have the id we&#8217;ll proceed to reset the password for the user testuser with id 8 which can be done using the following query:<\/p>\n<blockquote><p>UPDATE wp_users SET user_pass=md5(&#8216;newpassword&#8217;) WHERE ID=8;<\/p><\/blockquote>\n<p>See that the number 8 at the end of the line specifies the id, so \u00a0change that to whatever id you got earlier.<\/p>\n<p>Once you&#8217;ve reset the password here you should be able to log back into your WordPress installation with it.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few days ago I was unable to log into one of my wordpress installations, it was just one of those days, I simply didn&#8217;t remember my password, so for those of you that are going through a similar situation, here is a way to regain access: Log into your server via ssh and then [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to reset your Wordpress forgotten password - Etapien Tech Howtos<\/title>\n<meta name=\"description\" content=\"Forgot your Wordpress password? Here is how to recover access to your site\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to reset your Wordpress forgotten password - Etapien Tech Howtos\" \/>\n<meta property=\"og:description\" content=\"Forgot your Wordpress password? Here is how to recover access to your site\" \/>\n<meta property=\"og:url\" content=\"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/\" \/>\n<meta property=\"og:site_name\" content=\"Tech Howtos\" \/>\n<meta property=\"article:published_time\" content=\"2014-01-29T18:54:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-24T19:22:37+00:00\" \/>\n<meta name=\"author\" content=\"Etapien\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etapien\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/\",\"url\":\"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/\",\"name\":\"How to reset your Wordpress forgotten password - Etapien Tech Howtos\",\"isPartOf\":{\"@id\":\"https:\/\/etapien.com\/guides\/#website\"},\"datePublished\":\"2014-01-29T18:54:09+00:00\",\"dateModified\":\"2020-08-24T19:22:37+00:00\",\"author\":{\"@id\":\"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424\"},\"description\":\"Forgot your Wordpress password? Here is how to recover access to your site\",\"breadcrumb\":{\"@id\":\"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/etapien.com\/guides\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to reset your WordPress forgotten password\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/etapien.com\/guides\/#website\",\"url\":\"https:\/\/etapien.com\/guides\/\",\"name\":\"Tech Howtos\",\"description\":\"Tech related useful howtos\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/etapien.com\/guides\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424\",\"name\":\"Etapien\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/etapien.com\/guides\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g\",\"caption\":\"Etapien\"},\"url\":\"https:\/\/etapien.com\/guides\/author\/Etapien\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to reset your Wordpress forgotten password - Etapien Tech Howtos","description":"Forgot your Wordpress password? Here is how to recover access to your site","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/","og_locale":"en_US","og_type":"article","og_title":"How to reset your Wordpress forgotten password - Etapien Tech Howtos","og_description":"Forgot your Wordpress password? Here is how to recover access to your site","og_url":"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/","og_site_name":"Tech Howtos","article_published_time":"2014-01-29T18:54:09+00:00","article_modified_time":"2020-08-24T19:22:37+00:00","author":"Etapien","twitter_misc":{"Written by":"Etapien","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/","url":"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/","name":"How to reset your Wordpress forgotten password - Etapien Tech Howtos","isPartOf":{"@id":"https:\/\/etapien.com\/guides\/#website"},"datePublished":"2014-01-29T18:54:09+00:00","dateModified":"2020-08-24T19:22:37+00:00","author":{"@id":"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424"},"description":"Forgot your Wordpress password? Here is how to recover access to your site","breadcrumb":{"@id":"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/etapien.com\/guides\/how-to-reset-our-wordpress-forgotten-password\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/etapien.com\/guides\/"},{"@type":"ListItem","position":2,"name":"How to reset your WordPress forgotten password"}]},{"@type":"WebSite","@id":"https:\/\/etapien.com\/guides\/#website","url":"https:\/\/etapien.com\/guides\/","name":"Tech Howtos","description":"Tech related useful howtos","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/etapien.com\/guides\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424","name":"Etapien","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/etapien.com\/guides\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g","caption":"Etapien"},"url":"https:\/\/etapien.com\/guides\/author\/Etapien\/"}]}},"_links":{"self":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts\/80"}],"collection":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/comments?post=80"}],"version-history":[{"count":5,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts\/80\/revisions"}],"predecessor-version":[{"id":87,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts\/80\/revisions\/87"}],"wp:attachment":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/media?parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/categories?post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/tags?post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}