I do not figure out how can I execute an mysqldump for particular tables with where conditions. This is my instruction:
mysqldump --user=... --password=... --host=... DB_NAME user --where "name not in ('root', 'root2')",customer --where "customer_name not in ('root', 'root2')" >dump.sql
I receive this error:
mysqldump: Couldn't execute 'SELECT /*!40001 SQL_NO_CACHE */ * FROM
userWHERE customer_name not in ('root', 'root2')': Unknown column 'customer_name' in 'where clause' (1054)
What is wrong? thanks