mysqldump access denied

kwikness

New member
Local time
5:45 PM
Messages
2
Hi, I'm trying to do a mysql dump via the following procedure:


  1. Run cmd.exe as administrator
  2. Run "mysqldump -uroot -hlocalhost -ppassword --all-databases >%homepath%\Desktop"
I get the following output:
Access is denied.

Why can't I write to my own desktop, even when I'm running the command as an administrator?
What can I do to resolve this issue?
 

My Computer

OS
Windows 7/Slackware Linux
Problem solved. I was not giving the dump file an actual name. I needed to use:
"mysqldump -uroot -hlocalhost -ppassword --all-databases >%homepath%\Desktop\backup.sql"

opposed to:
"mysqldump -uroot -hlocalhost -ppassword --all-databases >%homepath%\Desktop".
 

My Computer

OS
Windows 7/Slackware Linux
Back
Top