Page 1 of 1

Can't access phpMyAdmin

PostPosted: 25. February 2010 19:40
by PGTA_Training
I installed xampp and tried to add a root password. After I did that, every time I try to get to phpMyAdmin I get this error:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

I have uninstalled xampp and reinstalled it, yet I still get this error.

Also, SMTP was disabled when I installed xampp and I don't know if it should be active or not. If it should be enabled, how do I do it please?

Re: Can't access phpMyAdmin

PostPosted: 25. February 2010 20:42
by jmatocha
You should be able to edit the file c:\xampp\phpMyAdmin\config.inc.php (your config.inc.php could be in a slightly different location).
Modify the line that reads
Code: Select all
$cfg['Servers'][$i]['password'] = '';

If your new password is porcupine, you should end up with
Code: Select all
$cfg['Servers'][$i]['password'] = 'porcupine';


I hope this helps.

--Jeff

Re: Can't access phpMyAdmin

PostPosted: 26. February 2010 07:52
by MC10
Yes, either that, or change the config_type to "cookie" so you actually have to log in.

Re: Can't access phpMyAdmin

PostPosted: 26. February 2010 13:09
by PGTA_Training
Thanks for your help but how to I edit the file. When I try to open it Windows tells me it doesn't recognise it and doesn't know what program to use to open it.

Re: Can't access phpMyAdmin

PostPosted: 26. February 2010 14:35
by Altrea
You can use your Windows notepad or better a php editor

Re: Can't access phpMyAdmin

PostPosted: 27. February 2010 03:27
by MC10
I recommend using Aptana Radrails, but Notepad works just fine.

Re: Can't access phpMyAdmin

PostPosted: 01. March 2010 14:59
by PGTA_Training
Thanks. I've downloaded Aptana and used that.

Re: Can't access phpMyAdmin

PostPosted: 01. March 2010 17:49
by MC10
If you need PHP coloring, search for "Aptana Eclipse plugins".

Re: Can't access phpMyAdmin

PostPosted: 01. March 2010 18:36
by dkeays
Since we are getting into that, I'll cast my vote for Notepad++

Re: Can't access phpMyAdmin

PostPosted: 02. March 2010 13:10
by PGTA_Training
:) I'll just try getting used to Aptana Studio first I think :)

Re: Can't access phpMyAdmin

PostPosted: 02. March 2010 18:51
by dkeays
I prefer something lite-weight. I'm thinking of trying Vim. I hear it has color coding and bracket matching. I want to see if there is a way to get xDEBUG running in Vim.