Access Denied on the first command to access MySql

coder@d32592ddcf58:~/project$ mysql --host=endpoint --user=admin --password=adminpwrd -port=3306
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user ‘admin