Hi,
I am trying to build a script in which I connect to mysql, select a database, drop a table. I have this :
mysql -u layogabox -h layogabox.mysql.pythonanywhere-services.com <<EOF
USE 'layogabox$layogabox';
DROP TABLE if exists simp_postmeta;
EOF
But I get an error when launching the script in a console :
ERROR 1044 (42000) at line 1: Access denied for user 'layogabox'@'%' to database 'layogabox'
I have tried a lot of variations but still get the error, am I allowed to do that from bash? If yes, what is my error.
Thank you for your help,