{"id":2332,"date":"2019-02-27T18:21:19","date_gmt":"2019-02-27T18:21:19","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2332"},"modified":"2019-02-27T18:21:20","modified_gmt":"2019-02-27T18:21:20","slug":"mysql-change-add-password-for-user","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/mysql-change-add-password-for-user\/","title":{"rendered":"MySQL change\/add password for user"},"content":{"rendered":"\n<p><strong>Log into mysql<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql -u root -p<\/pre>\n\n\n\n<p><strong>List users<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">select User,Host from mysql.user;<\/pre>\n\n\n\n<p><strong>Set password<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">set password for 'root'@'localhost' = PASSWORD('password');<\/pre>\n\n\n\n<p>On new versions of MySQL you may need to use<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">alter user 'root'@'localhost' IDENTIFIED BY 'password';<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Log into mysql mysql -u root -p List users select User,Host from mysql.user; Set password set password for &#8216;root&#8217;@&#8217;localhost&#8217; = PASSWORD(&#8216;password&#8217;); On new versions of MySQL you may need to use alter user &#8216;root&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[135],"tags":[282,136,200],"class_list":["post-2332","post","type-post","status-publish","format-standard","hentry","category-mysql","tag-mariadb","tag-mysql-2","tag-password"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=2332"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2332\/revisions"}],"predecessor-version":[{"id":2333,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2332\/revisions\/2333"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}