简体   繁体   中英

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)-

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM