Dingbats Posted August 22, 2007 Share Posted August 22, 2007 When I try to login to phpMyAdmin using the username 'root' and the password I have set for it, it fails and gives me this error: Error #1045 - Access denied for user 'www-data'@'localhost' (using password: YES) The weird thing is that my PHP scripts can connect to the database just fine, and I can login to MySQL from the command line without problems. I have reset the password from the command line several times without it changing anything. I have searched on the net around for a few days now, but haven't found anything that has helped me solve this problem. I'm running MySQL 5.0.38 and phpMyAdmin 2.9.1.1 on Ubuntu 7.04. Any help is very appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/66222-error-1045-access-denied-only-from-phpmyadmin-not-from-scripts-or-terminal/ Share on other sites More sharing options...
fenway Posted August 23, 2007 Share Posted August 23, 2007 You say "root" is the user, but the error message disagrees. Quote Link to comment https://forums.phpfreaks.com/topic/66222-error-1045-access-denied-only-from-phpmyadmin-not-from-scripts-or-terminal/#findComment-332041 Share on other sites More sharing options...
Dingbats Posted August 23, 2007 Author Share Posted August 23, 2007 Yeah ok... but I put 'root' in the username field. What should I do instead? Quote Link to comment https://forums.phpfreaks.com/topic/66222-error-1045-access-denied-only-from-phpmyadmin-not-from-scripts-or-terminal/#findComment-332224 Share on other sites More sharing options...
fenway Posted August 27, 2007 Share Posted August 27, 2007 Sounds like php isn't respecting your login credentials... Quote Link to comment https://forums.phpfreaks.com/topic/66222-error-1045-access-denied-only-from-phpmyadmin-not-from-scripts-or-terminal/#findComment-335201 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.