{"id":2001,"date":"2013-06-14T09:03:41","date_gmt":"2013-06-13T21:03:41","guid":{"rendered":"http:\/\/www.juliaandtania.com\/blog\/?p=2001"},"modified":"2017-05-30T10:48:48","modified_gmt":"2017-05-29T22:48:48","slug":"xampp-add-password-to-root-user-and-xampp-directory","status":"publish","type":"post","link":"https:\/\/www.juliaandtania.com\/blog\/?p=2001","title":{"rendered":"XAMPP: Add password to root user and XAMPP directory"},"content":{"rendered":"<p align=\"justify\">When XAMPP is installed there is no password set to prevent unauthorised users from accessing your databases and the XAMPP directory. Our last post in this set of posts is setting a password for MySQL administrator user root as well as protecting the XAMPP directory. There are a few ways to set these passwords: through command line, through phpMyAdmin and through the Internet browser. The easiest way is through the Internet browser.<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>In your Internet browser&#8217;s address bar, enter &#8220;http:\/\/localhost\/security\/&#8221;<\/strong><\/li>\n<p>&nbsp;<\/p>\n<li><strong>On the security page, click &#8220;http:\/\/localhost\/security\/xamppsecurity.php&#8221;<\/strong><\/li>\n<div style=\"width:300px; margin:auto; padding: 20px 0px;\"><a href=\"blogimgs\/xampp\/xamppsec01.png\" rel=\"prettyPhoto\" title=\"\" data-rel=\"lightbox-gallery-qcK2LaFI\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"blogimgs\/xampp\/xamppsec01.png\" width=\"300\" height=\"156\" border=\"0\" \/><\/a><\/div>\n<p>&nbsp;<\/p>\n<li><strong>In MySQL section, fill in Current, New and Repeat Password fields<\/strong><\/li>\n<div style=\"width: 90%;margin:auto;text-align:justify\">\n<ul>\n<li>The &#8220;Current password&#8221; field should be left blank.<\/li>\n<p>When you first install XAMPP the default is that there is no password for MySQL&#8217;s administrator user root, so you will not need to enter anything in the field.<\/p>\n<p>&nbsp;<\/p>\n<li>For &#8220;PhpMyAdmin authentication&#8221;, select &#8220;cookie&#8221; radio button<\/li>\n<p>&nbsp;<\/p>\n<li>Do not check the boxes &#8220;Save password in text file&#8221;<\/li>\n<p>&nbsp;<\/p>\n<li>Click &#8220;Password changing&#8221; button<\/li>\n<\/ul><\/div>\n<div style=\"width:300px; margin:auto; padding: 20px 0px;\"><a href=\"blogimgs\/xampp\/xamppsec02.png\" rel=\"prettyPhoto\" title=\"\" data-rel=\"lightbox-gallery-qcK2LaFI\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"blogimgs\/xampp\/xamppsec02.png\" width=\"300\" height=\"156\" border=\"0\" \/><\/a><\/div>\n<p>&nbsp;<\/p>\n<li><strong>In XAMPP directory section, fill in the &#8220;User&#8221; and &#8220;Password&#8221; fields<\/strong><\/li>\n<div style=\"width: 90%;margin:auto;text-align:justify\">\n<ul>\n<li>Enter desired username and password into the fields<\/li>\n<p>&nbsp;<\/p>\n<li>Do not check the boxes &#8220;Save password in text file&#8221;<\/li>\n<p>&nbsp;<\/p>\n<li>Click &#8220;Make safe the XAMPP directory&#8221; button<\/li>\n<\/ul><\/div>\n<div style=\"width:300px; margin:auto; padding: 20px 0px;\"><a href=\"blogimgs\/xampp\/xamppsec03.png\" rel=\"prettyPhoto\" title=\"\" data-rel=\"lightbox-gallery-qcK2LaFI\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"blogimgs\/xampp\/xamppsec03.png\" width=\"300\" height=\"156\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p><\/div>\n<\/ul>\n<p align=\"justify\">&nbsp; &nbsp; With the passwords set, the next time you go into phpMyAdmin or load http:\/\/localhost\/, you will need to enter the user and the password you set. PhpMyAdmin will use the one you set for MySQL; to load localhost directory, you will use the user and password set in the XAMPP directory section.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>RESETTING ROOT USER PASSWORD<\/strong><\/p>\n<p align=\"justify\">&nbsp; &nbsp; If you happen to get locked out for whatever reason, you can reset MySQL&#8217;s administrator user root password through XAMPP&#8217;s shell command. XAMPP&#8217;s shell command is accessed through XAMPP&#8217;s control panel (see picture below). The article at Kioskea.net has the <a href=\"http:\/\/en.kioskea.net\/faq\/630-mysql-reset-the-root-password\" target=\"_blank\">specific commands to reset the password<\/a>.<\/p>\n<div style=\"width:300px; margin:auto; padding: 20px 0px;\"><a href=\"blogimgs\/xampp\/xamppshell.png\" rel=\"prettyPhoto\" title=\"\" data-rel=\"lightbox-gallery-qcK2LaFI\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"blogimgs\/xampp\/xamppshell.png\" width=\"300\" height=\"156\" border=\"0\" \/><\/a><\/div>\n<p>&nbsp;<\/p>\n<p align=\"justify\">&nbsp; &nbsp; We hope our blog series on installing XAMPP and an existing WordPress blog has been of help. Till next time! : o) : o).<\/p>\n<p>&nbsp;<\/p>\n<p><strong>POSTS IN &#8220;XAMPP: INSTALLING EXISTING WORDPRESS FOR LOCAL ENVIRONMENT&#8221; BLOG SERIES<\/strong><\/p>\n<div style=\"width:400px;\">\n<p>\n\t\t<a href=\"http:\/\/www.juliaandtania.com\/blog\/?p=1979\" title=\"XAMPP: Installing Existing WordPress for Local Environment\">XAMPP: Installing Existing WordPress for Local Environment<\/a><br \/>\n\t\t<a href=\"http:\/\/www.juliaandtania.com\/blog\/?p=1982\" title=\"XAMPP: Setting up an existing WordPress blog\">XAMPP: Setting up an existing WordPress blog<\/a>\n<\/div>\n<p style=\"font-size:0.8em; color: #CCCCCC; padding-top:0.8em;\">ADVERTISEMENT<\/p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<!-- in_post_336x280 -->\n<ins class=\"adsbygoogle\"\n     style=\"display:inline-block;width:336px;height:280px\"\n     data-ad-client=\"ca-pub-2511870572863439\"\n     data-ad-slot=\"6047308084\"><\/ins>\n<script>\n(adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When XAMPP is installed there is no password set to prevent unauthorised users from accessing your databases and the XAMPP directory. Our last post [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2456,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[324],"tags":[282,295],"class_list":["post-2001","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-juliaandtanias-world","tag-xampp","tag-xampp-security"],"_links":{"self":[{"href":"https:\/\/www.juliaandtania.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.juliaandtania.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.juliaandtania.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.juliaandtania.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.juliaandtania.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2001"}],"version-history":[{"count":0,"href":"https:\/\/www.juliaandtania.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2001\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.juliaandtania.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/2456"}],"wp:attachment":[{"href":"https:\/\/www.juliaandtania.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.juliaandtania.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.juliaandtania.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}