On a fresh install of MySQL 4.1.3B, I'm running this line in the windows command shell before a password has been set:
c:\mysql\bin\mysqladmin -u root password mypassword
. . .and I get the error: "the syntax of the command is incorrect."
. . .and yet the script actually works and sets the password correctly. So why am I getting this error and how can I run the line differently so that the error is not thrown? Mysql.com documentation for mysqladmin is not helpful because they don't give actual examples for setting the initial password.