4

I'm getting this error when I run mysqldump like this:

$ mysqldump -u my_user -pXXX -h 127.0.0.1 --databases my_db > db_backup.sql
mysqldump: unknown variable 'sql-mode=STRICT_ALL_TABLES'

Does anyone know what could be going on?

I also get the same thing when I try to start the MySQL client.

2 Answers 2

4

Turns out I had "sql-mode=STRICT_ALL_TABLES" in the client settings section of my my.cnf file. I moved it to the server section and it seems all good.

Sign up to request clarification or add additional context in comments.

Comments

3

It's a bad line in your .my.conf file, or maybe one of your system .ini files.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.