Jump to content

mysqldump error


anujgarg

Recommended Posts

Hi Everyone,

 

I am facing an error while using the following command in Putty:

 

# mysqldump-root DB_NAME >db.sql bzip2 db.sql

 

I got following error:

 

mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect

 

I have tried:

 

# mysqldump-root -p DB_NAME >db.sql bzip2 db.sql

 

But of no use. I got the same error with (using password: NO)

 

I have copied "mysqldump-root" from one directory to another directory. Do I need to change the permissions for this new directory? How can I take the dump of mysql database by using mysqldump-root command?

 

Please suggest..

 

TIA

Anuj

Link to comment
https://forums.phpfreaks.com/topic/178730-mysqldump-error/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.