BloodyMind Posted October 7, 2008 Share Posted October 7, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/127374-mysql-access-denied/ Share on other sites More sharing options...
JonnoTheDev Posted October 7, 2008 Share Posted October 7, 2008 This is obviously the connection used in your application previously. You need to update the mysql connection settings with your new database username and password. Quote Link to comment https://forums.phpfreaks.com/topic/127374-mysql-access-denied/#findComment-658920 Share on other sites More sharing options...
fenway Posted October 7, 2008 Share Posted October 7, 2008 In fact, you're not even using a password. Quote Link to comment https://forums.phpfreaks.com/topic/127374-mysql-access-denied/#findComment-659108 Share on other sites More sharing options...
PFMaBiSmAd Posted October 7, 2008 Share Posted October 7, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/127374-mysql-access-denied/#findComment-659176 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.