Jump to content

MySQL Access Denied


BloodyMind

Recommended Posts

Hello there,

I just installed LAMP on Ubuntu 7.10

I'm a total noobie on linux

 

I have imported my database, my application and all

then when i try to simply access anything in the database with the user and pass I get this error

 

Access denied for user 'www-data'@'localhost' (using password: NO)

 

I have no idea about this user

 

anyone can help!

 

Thank you in advance

Link to comment
https://forums.phpfreaks.com/topic/127374-mysql-access-denied/
Share on other sites

Without seeing all the code in the file where that error is occurring, best guess is you have an include statement that is failing to bring in your database username/password and/or your mysql_connect() function is failing but your code has no error checking logic and that error is caused by a mysql_query() attempting to create a connection with default values.

 

You would need to post your code and the whole error message to get a specific reason instead of guesses.

Link to comment
https://forums.phpfreaks.com/topic/127374-mysql-access-denied/#findComment-659176
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.