I found the answer: --defaults-extra-file must be the first option. This works as expected:
...\right_path\mysqldump --defaults-extra-file=d:\1.cnf
--add-drop-database --databases my_database_name
I found the answer: --defaults-extra-file must be the first option. This works as expected:
...\right_path\mysqldump --defaults-extra-file=d:\1.cnf
--add-drop-database --databases my_database_name