Access denied: WTF?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
granite
Forum Commoner
Posts: 44
Joined: Mon Feb 09, 2009 10:52 am

Access denied: WTF?

Post by granite »

Hi,

I tried to connect my site to the Mysql database but it didn't work, possibly because the database I tried to access didn't exist anymore. The fact is, seconds later, when I tried to access the database through phpMyAdmin (2.11.3), I got an error message. Needless to say, it was working perfectly before this.
And this keeps happening. It's is the second time this happens, and the time before, I solved the problem just by reseting my localserver. Now, reseting it isn't working.

Here's the error I get:
Access denied wrote:The probable reason for this is that you didn't create the configuration file. You must use setup script to create one.

Error

MySQL Message : Documentation
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
Can someone help me, please?

Thank you.


Ps.: I'm sorry if this is the wrong forum.
maneetpuri
Forum Commoner
Posts: 60
Joined: Tue Oct 07, 2008 6:32 am

Re: Access denied: WTF?

Post by maneetpuri »

Hi,

I think this is the problem of authtication, go to the folder on your local web server where you have phpmyadmin installed, here you will find a file config.inc.php, open this and scrolling a bit down you will see some varibales defined for the authentication of the MySQL, make sure they are correct. Save it and try to run phpmyadmin again and it should work.

Cheers,

~Maneet
granite
Forum Commoner
Posts: 44
Joined: Mon Feb 09, 2009 10:52 am

Re: Access denied: WTF?

Post by granite »

<span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span>, this file keeps being deleted. :banghead:

Nah, it's working now, I just copied the said file from config dir (a backup copy I had) to phpMyAdmin folder.

But what the <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> would be causing the deletion of config.inc.php?

<span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span>, <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span>, <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span>, <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> file!!!

Thanks maneetpury for reminding me of this file.
Post Reply