Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.