{"id":2734,"date":"2019-04-17T16:04:52","date_gmt":"2019-04-17T13:04:52","guid":{"rendered":"https:\/\/www.fatihacar.com\/blog\/?p=2734"},"modified":"2019-12-17T16:14:31","modified_gmt":"2019-12-17T13:14:31","slug":"reset-mysql-root-user-password-in-centos-7","status":"publish","type":"post","link":"https:\/\/www.fatihacar.com\/blog\/reset-mysql-root-user-password-in-centos-7\/","title":{"rendered":"Reset MySQL Root User Password in Centos 7"},"content":{"rendered":"<p><strong>Stop MySQL Database<\/strong><\/p>\n<blockquote><p>systemctl stop mysqld.service<\/p><\/blockquote>\n<p><strong>Start MySQL as Safe Mode<\/strong><\/p>\n<blockquote><p>mysqld_safe &#8211;skip-grant-tables &amp;<\/p><\/blockquote>\n<p><strong>Connect MySQL Database With Root User<\/strong><\/p>\n<blockquote><p>mysql -uroot<\/p><\/blockquote>\n<p><strong>Change Root Password<\/strong><\/p>\n<blockquote><p>\nuse mysql;<br \/>\nupdate user set password=PASSWORD(&#8220;newpassword&#8221;) where user=&#8217;root&#8217;;<br \/>\nflush privileges;<br \/>\nexit\n<\/p><\/blockquote>\n<p><strong>Restart MySQL Database<\/strong><\/p>\n<blockquote><p>systemctl stop mysqld.service<\/p>\n<p>systemctl start mysqld.service<\/p><\/blockquote>\n<p><strong>Connect MySQL Database With Root User With New Password<\/strong><\/p>\n<blockquote><p>mysql -u root -p<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Stop MySQL Database systemctl stop mysqld.service Start MySQL as Safe Mode mysqld_safe &#8211;skip-grant-tables &amp; Connect MySQL Database With Root User mysql -uroot Change Root Password use mysql; update user set password=PASSWORD(&#8220;newpassword&#8221;) where user=&#8217;root&#8217;; flush privileges; exit Restart MySQL Database systemctl stop mysqld.service systemctl start mysqld.service Connect MySQL Database With Root User With New Password mysql&#8230;<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[43],"tags":[100,44],"class_list":["post-2734","post","type-post","status-publish","format-standard","hentry","category-administration-mysql","tag-mysql","tag-mysql-administration"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-I6","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=2734"}],"version-history":[{"count":2,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2734\/revisions"}],"predecessor-version":[{"id":2736,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2734\/revisions\/2736"}],"wp:attachment":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=2734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=2734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=2734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}