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
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.