How do I fix the error that occurs when I enter the file path and date in mysqldump?
I ran the mysqldump command as follows in cmd:
set _my_datetime=%date:-=%
mysqldump -u root -p --all-databases -pMyPassword > C:\Program Files\MariaDB 10.4\data\backup\%_my_datetime%.sql
But the result is:
Usage: mysqldump [OPTIONS] database [tables]
OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
OR mysqldump [OPTIONS] --all-databases [OPTIONS]
For more options, use mysqldump --help
I wonder how to modify the above command in Windows server environment.