mysqldump forbidden syntax

182 views Asked by At

I am typing the following on the command line and trying to get a backup of the database that is on port 3306:

mysqldump -u[dbusername] --host=127.0.0.1 --port=3306 -p [dbname] > file.sql

but am getting a forbidden syntax error and just doesn't work even if I put the password in after -p arg. I do not include the info for the brackets for security ofcourse, but trust me it's the right info in there minus the brackets.

Database Name has a hyphen and underscore in it. Does this matter? Do I need to escape these somehow?

Not sure if this matters, but site is hosted on WPMU. What is wrong with the syntax here?

0

There are 0 answers