The old XAMPP security functions to set the mysql root password are no longer maintained by the XAMPP developers. This code was old and buggy and has screwed up several dozen xampp installations.
This thread explains in detail how to set the root password with help of the very well maintained MySQL CLI and phpMyAdmin.
How to set a MySQL root password successfully
0. Requirements
To change any password you need to start MySQL first.
If you want to change the password with phpMyAdmin Apache needs to be started too.
1a. Setting root password with MySQL CLI
Open the XAMPP control panel and click the Shell button to start the XAMPP shell.
(You may get asked if XAMPP should create the shell file because it is not existent. Accect this)
Well, thank god I have found this post. I have just spent the past 36 hours downloading, activating and removing XAMPP from my computer - every time I put a password into the user accounts I got a message "Access Denied", and could find no way to get back in. So, in total I have set it up and discarded it 4 times already.
Everything I found online is out of date for the version I am using. Please, could you guys put something into the user documentation online, where the downloads are available (including apache friends page), so that we new users get a break here? I still haven't tried this out yet, but it looks like it may be an updated solution, so I'll give it a try tomorrow. Stay tuned..... Thanks!
Good morning, Apache friends. Further to my post last evening, I went through the steps recommended for setting the MySQL password, got to the point where the DBMS said, Query ok, but when I tried to access local host, to update password in myphpadmin, again, it said, Access Denied!
Can someone please help me here?! I am using version 3.2.2.
Thank you, I will await your reply.
Jan
Altrea,
I am able to get a prompt back asking for my password. I have 'xxxx' in my config.inc file inside phpmyadmn, but that did not work. I don't know what else to enter to get into mysql to change or update my password. I am running into the same problem trying to log into phmyadmn page. I enter root for user but am clueless what to write for password. Please help. Thanks!!
costarica wrote:very good info moderator, if not that forum, i would not know what to do, how to access security page to set up passwords.
Can you tell me from this screenshot from the old version, what of these 3 points does this your post manual protects?
Very good question.
security issue 1 is not present in current XAMPP versions because there are no setting pages which can be made accessible. And phpmyadmin is already permitted for localhost requests only.
Security issue 2 would be solved if you do the first step of this guide.
Security issue 3 would be solved if you do the second step of this guide.
phpmyadmin is only accessible from localhost, root can only login from localhost. So this database user can only get used from scripts on your very own machine and phpmyadmin can only get used from your very own machine. This is already very secure. How much security is really needed on a local test and development environment?
IMHO there is no need for setting a root password at all.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!
ok, good. no i do not need security at all. SO if my locacl lan network has only my pc, i do not need this security, cos worldwide no can access nor mysqli, nor phpmyadmin login panel, correct?
Security issue 2 - so even i do no need to set up password for this step , i.e. mysql admin root password with all these privileges ticketed on. correct?
I also want to notice to everyone, till i did not change $cfg['Servers'][$i]['auth_type'] = 'config'; config for cookies i could not even start ywebsite/phpmyadmin page.
moderator, just reply for 2 questions yes or no. thanks.
costarica wrote:ok, good. no i do not need security at all. SO if my locacl lan network has only my pc, i do not need this security, cos worldwide no can access nor mysqli, nor phpmyadmin login panel, correct?
yes
costarica wrote:Security issue 2 - so even i do no need to set up password for this step , i.e. mysql admin root password with all these privileges ticketed on. correct?
yes
As long you use XAMPP in the way it is designed for (as local test and development environment) without making it public accessible everything is fine already by the default configuration of XAMPP.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!
Altrea wrote:
IMHO there is no need for setting a root password at all.
OK, that's very important information for newcomers, because phpMyAdmin puts up a big red warning message if you leave the root password undefined. So I went ahead and changed it (through the Admin button in XAMPP Control Panel) and locked myself out of phpMyAdmin! It's lucky I found this post, with your instructions about config.inc.php, or I would be tearing XAMPP down and reinstalling it.