Search code examples
mysqlpythonanywhere

Pythonanywhere MySQL - Access denied


When I try to do:

"drop database wachtwoorden;"

I get the message:

-ERROR 1044 (42000): Access denied for user 'Jip1912'@'%' to database 'wachtwoorden'-

So I tried in bash:

"mysql -u root -p"

I had to give a password and after that I got:

-ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)-


Solution

  • You do have drop privileges for your databases on PythonAnywhere, you're just not using the right database name. Your databases are listed on the databases page.