Forums

SQL backup

I'm running this command in the bash console to backup database:

mysqldump -u username -h username.mysql.pythonanywhere-services.com 'username$databse'  > db-backup.sql

(with correct information from the database tab) but get this error message.

mysqldump: [ERROR] unknown variable 'database=username.mysql.pythonanywhere-services.com'

What is the issue?

Hi, looks like problem with fonfiguration file ~/.my.cnf

See https://stackoverflow.com/a/55197291/7959642