It is currently Mon May 21, 2012 1:11 pm

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: mysqldump error
PostPosted: Sat Oct 24, 2009 9:20 am 
Offline

Joined: Wed May 27, 2009 11:26 am
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 27, 2009 6:10 am 
Offline

Joined: Sun May 02, 2004 11:34 pm
Posts: 6535
Location: toronto, canada
try

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

_________________
Lostboy

Cat, the other other white meat

Please read Posting Etiquette before posting

You can always try Google


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron