Forums

Delete a MySql database

I'm using these commands in a fresh new mysql console (no other consoles opened):

use asd1$asdasdas

Database changed.

then

drop database asd1$dbname

I get no results and nothing happens.

I found the solution myself as always.

Just open bash console.

Write command:

mysql -uUSER -hUSER.mysql.pythonanywhere-services.com -p

drop database USER$DATABASENAME

instead of USER put your pythonanywhere username, same thing for DATABASENAME.

Yes, that's right. You can also skip the first step -- running the mysql command -- just by going to the "Databases" tab, then clicking on the database name there. That will start a MySQL console where you can run the drop database command.