 
    
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>not recommended Archives - Complete, Concrete, Concise</title>
	<atom:link href="https://complete-concrete-concise.com/tag/not-recommended/feed/" rel="self" type="application/rss+xml" />
	<link>https://complete-concrete-concise.com/tag/not-recommended/</link>
	<description>Practical Information Without The Bloat</description>
	<lastBuildDate>Mon, 28 Mar 2011 09:43:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>How to Add a Password to the XAMPP root User</title>
		<link>https://complete-concrete-concise.com/web-tools/how-to-add-a-password-to-the-xampp-root-user/</link>
					<comments>https://complete-concrete-concise.com/web-tools/how-to-add-a-password-to-the-xampp-root-user/#comments</comments>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Mon, 28 Mar 2011 09:43:41 +0000</pubDate>
				<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[create root password]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[not recommended]]></category>
		<category><![CDATA[XAMPP]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/web-tools/how-to-add-a-root-password-to-a-xampp-database</guid>

					<description><![CDATA[<p>This is NOT recommended! By default, databases in XAMPP are created with the user root having a blank password. This poses a security risk if the computer or database are publically accessible. However, for local development and testing, this should not be a problem. This tutorial assumes that you have XAMPP 1.7.3 installed. The procedure [&#8230;]</p>
<p>The post <a href="https://complete-concrete-concise.com/web-tools/how-to-add-a-password-to-the-xampp-root-user/">How to Add a Password to the XAMPP root User</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<h2 class="c2">This is NOT recommended!</h2>
<p>By default, databases in XAMPP are created with the <strong>user</strong> <u><em>root</em></u> having a blank password. This poses a security risk if the computer or database are publically accessible. However, for local development and testing, this should not be a problem.</p>
<p>This tutorial assumes that you have XAMPP 1.7.3 installed. </p>
<p>The procedure should be the same for other versions of XAMPP. </p>
<p>A XAMPP installation procedure for Windows XP can be found <a href="//complete-concrete-concise.com/web-tools/installing-xampp-apache-server-mysql-and-php-2">here</a>. </p>
<p class="c3"><strong>WARNING</strong>: you will need to update your <strong>phpmyadmin</strong> configuration file to login using the new password, otherwise you will no longer be able to use <strong>phpmyadmin.</strong></p>
<p class="c4">Even if you assign a password to root, someone can still <strong><u>gain access</u></strong> to it by inspecting the <strong>phpmyadmin</strong> configuration file (where the password is plainly visible).</p>
</p></div>
<p class="c2">Click on images for full sized versions.</p>
<h3><strong>Assigning a password to ‘<em>root</em> ‘</strong></h3>
<p><strong>(1) Enter</strong> <span class="i1">http://localhost/phpmyadmin</span> into your browser’s URL field. This will bring you to the <strong>phpmyadmin </strong>main page.</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/deletemysqldbxampp11.png"><img fetchpriority="high" decoding="async" style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="delete-mysql=db=xampp-1" border="0" alt="delete-mysql=db=xampp-1" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/deletemysqldbxampp1_thumb1.png" width="484" height="148" /></a></p>
</p>
<p><strong>(2) Click</strong> on the <strong>Privileges</strong> tab: </p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/XAMPPaddrootpassword3.png"><img decoding="async" style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="XAMPP-add-root-password-3" border="0" alt="XAMPP-add-root-password-3" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/XAMPPaddrootpassword3_thumb.png" width="484" height="158" /></a><strong>(3) Click</strong> on the icon in the <strong>Action</strong> column:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/XAMPPaddrootpassword4.png"><img decoding="async" style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="XAMPP-add-root-password-4" border="0" alt="XAMPP-add-root-password-4" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/XAMPPaddrootpassword4_thumb.png" width="484" height="238" /></a>&#160; <strong>(4) Scroll</strong> down to the password section:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/XAMPPaddrootpassword5.png"><img loading="lazy" decoding="async" style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="XAMPP-add-root-password-5" border="0" alt="XAMPP-add-root-password-5" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/XAMPPaddrootpassword5_thumb.png" width="484" height="232" /></a><strong>Enter</strong> a password and <strong>retype</strong> it to confirm it. <strong>Click</strong> on <strong>Go</strong> to accept it.</p>
<p>A password should be composed of basic ASCII characters (‘a’..’z’, ‘A’..’Z’, and “0’..’9’). Numerous forums report errors trying to use other ASCII characters.</p>
<p>There is no mention in the <strong>MySql</strong> documentation of maximum password length. The <strong>Generate Password</strong> function generates passwords of 16 characters in length, so it is reasonable to assume this is the maximum.</p>
<p><strong>Password Hashing:</strong> </p>
<p><strong>MySql 4.1+</strong> will generate a 41 byte password hash (MySql does not store the actual password, it stores an encrypted 41 byte hash of the password. When it verifies your password, it encrypts it and checks the encryption against the stored hash, if they match the password is accepted. This is more secure because the hash is not reversible, i.e. you cannot discover the password by reversing the encryption process). Unless you require backwards compatibility with older database engines, leave <strong>MySql 4.1+</strong> selected.</p>
<p><strong>MySql 4.0 compatible</strong> will generate a 16 byte password hash (MySql does not store the actual password, it stores an encrypted 16 byte hash of the password. When it verifies your password, it encrypts it and checks the encryption against the stored hash, if they match the password is accepted. This is more secure because the hash is not reversible, i.e. you cannot discover the password by reversing the encryption process).</p>
<p><strong>Generate Password:</strong></p>
<p>Alternately, you may allow MySql to generate a password for you by <strong>clicking</strong> on the <strong>Generate</strong> button. It generates a 16 character password. (Just make sure you write it down somewhere.) You still have to <strong>click</strong> on <strong>Go</strong> to accept it.</p>
<p class="c1">Don’t forget to update any applications using this database to use the new password!</p>
<h3>Updating the phpmyadmin Configuration File</h3>
<p><strong>(1) Locate</strong> the file <em>config.inc.php</em>. This will be found in your XAMPP 1.7.3 directory under the folder phpmyadmin (in my case, this is <em>D:\xampp\phpmyadmin</em> – since I installed XAMPP to my D-drive. In most installs, it will be located in the C-drive).</p>
<p><strong>(2) Open </strong>the file <em>config.inc.php</em> with a plain text editor (such as notepad – I used notepad++).</p>
<p><strong>(3) Find</strong> the following two lines:</p>
<p> <code>   </p>
<p>$cfg['Servers'][$i]['password']&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; = '';      <br />$cfg['Servers'][$i]['AllowNoPassword']&#160;&#160;&#160;&#160;&#160; = true;</p>
<p> </code>  </p>
<p>On the line with first line (the one with <code>{'password'}</code> in it, <strong>enter</strong> your password between the two single quotes on the right side.</p>
<p>On the next line (the one with <code>{'AllowNoPassword'}</code> in it, change the <strong>true</strong> to <strong>false</strong>.</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2011/03/XAMPPaddrootpassword6.png"><img loading="lazy" decoding="async" style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="XAMPP-add-root-password-6" border="0" alt="XAMPP-add-root-password-6" src="//complete-concrete-concise.com/wp-content/uploads/2011/03/XAMPPaddrootpassword6_thumb.png" width="484" height="116" /></a></p>
<p><strong>(4) Save</strong> the file.</p>
<h1 class="c2">This is not recommended!</h1>

<p>The post <a href="https://complete-concrete-concise.com/web-tools/how-to-add-a-password-to-the-xampp-root-user/">How to Add a Password to the XAMPP root User</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://complete-concrete-concise.com/web-tools/how-to-add-a-password-to-the-xampp-root-user/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
