EDIT: I have worked out what the problem was. When logging in using command prompt I was typing -u root; . The semicolon was the problem. Without the semicolon it works as expected.
I'm using easyphp
and working my way through "Learning PHP, MySQL and Javascript" by Robin Nixon.
I'm trying to follow along with the book I tried to create a database, but it said access denied. I uninstalled easyphp and installed the latest version. Then everything worked fine and I could go along with the book. Two days later, I'm getting the access denied message again.
"Access denied for user ''@'localhost' to database 'mysql' "
I've not changed anything. I looked at PHPMyAamin (which i haven't really learned how to use yet), and it says root localhost has all privileges. I've reinsalled easyphp but it's still the same.
I've tried turning off windows firewall completely and I still have this problem. I've looked up many topics similar but I'm still struggling.
Anyone know what this could be? If not, is it possible for me to proceed not using command prompt and just using PhPMyAdmin
? I've been stuck on this too long.