What is mydb? Did you create it or is it a functioning system? I hate to advise you on your data if I don't know anything about it. Can you manipulate in in phpmyadmin?
I really can't answer about why the mysql is doing that. Start with a known quantity and get it running first then tackel the more complex job.
The key to debugging this is to:
A) create a new database and a simple table with a couple of records,
😎 run a mysqldump in the command prompt with whatever solution works re password,
C) look for output resembling (my data not yours):
CREATE TABLE usertypes (
usertypecode char(1) NOT NULL default 'U',
usertypedescription varchar(22) NOT NULL default 'List User',
PRIMARY KEY (usertypecode)
) TYPE=MyISAM COMMENT='Control Table for User Types';
/Data for the table usertypes /
insert into usertypes (usertypecode,usertypedescription) values ('U','List User');
insert into usertypes (usertypecode,usertypedescription) values ('W','Webmaster');
insert into usertypes (usertypecode,usertypedescription) values ('y','Youth Director');
D) once you are getting a true dump of the data use that exact code in the batch file,
E) then try substituting the name of the failing database and resolve those issues.
This backup method works as long as the SQL part of it is functioning, and you need to actually see that work with a simple test.