error to take backup in mysql through mysqldump

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

error to take backup in mysql through mysqldump

Post by manojsemwal1 »

hai,

iam facing the following problem to take back up in windows server.
C:\Program Files\MySQL\MySQL Server 5.0\bin>mysqldump -u [root] -h localhost -p[admin] [s] >mysqlbc.sql
mysqldump: Got error: 1045: Access denied for user '[root]'@'localhost' (using password: YES) when trying to connect

why this error is coming while user name and password is correct.
thanks
Post Reply