I have Windows XP Home Edition, and intead of installing PHP, Apache, and MySQL, I installed something simpler that uses all that: XAMPP
You can find more about XAMPP at http://www.apachefriends.org/
It has an easy installer, so it really simplifies running Apache, MySQL, phpMyAdmin, and PHP. However, I'm having a little problem using XAMPP's phpMyAdmin to facilitate my MySQL connections. I set up a password for MySQL, and now my phpMyAdmin does not connect to MySQL, because it doesn't specify the password I set up on some file. I don't know what file I need to edit to get it to specify that, or what exactly I need to edit on the file, because I'm really knew to php, and to XAMPP. Here is what I did to get my MySQL passworded, and to thereby get my phpMyAdmin not to run properly with it:
1. I installed XAMPP (not a problem)
2. than I looked at the ApacheFriends documentation at http://www.apachefriends.org/faq-en.html , and clicked on the Apache for Windows FAQ link.
3. From there, I followed the following part of the tutorial:
Everyone can use PHPMyAdmin from outside!
In the basic adjustment of XAMPP, PHPMyAdmin have a public access. You can close this gap with the "config.inc.php". Open the configuration file of PHPMyAdmin and edit the 'auth_type' lines:
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'secret';
This becomes ...
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'secret';
Now, user and password are checking before PHPMyAdmin access the mysql server. Optionally you can set 'cookie' for 'http'.
4. Once I did that, and went back to http://localhost/xampp/ and clicked on phpMyAdmin, under tools, I got the following error:
* phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.
Error
MySQL said:
Access denied for user: 'root@localhost' (Using password: NO)
So here is my question:
How do I change the phpMyAdmin setup to use the password I set up for my MySQL database? Could you help me with that?
I could just change it back to the original configuration, but my concern with that is that according to the small documentation that came with XAMPP, that would make my computer's security vulnerable, because anyone would be able to access my web server without entering a password. So, I can't do that. Any suggestions?