mysqldump access denied

后端 未结 9 2112
闹比i
闹比i 2020-12-14 15:23

When I try to backup using mysqldump from ssh, I run the following command on machine 10.64.1.1. It gives the following error.

mysqldump --user=test -p=passwor

相关标签:
9条回答
  • 2020-12-14 16:03

    I know the topic is very old, but I happened to have the same issue. I figured out that the problem was just the special character used in the password. In fact they must be escaped with the anti slash: --password=123\@456 or using signle quotes --password='123@456'

    0 讨论(0)
  • 2020-12-14 16:07

    In windows, I resolved it by making a directory and then dumping *.sql file in backup directory.

    C:\backup

    There are no issues with commands :
    Remove the [ ] square brackets

    mysqldump -u[username] -p[password] -h[ip] yourdb > C:\backup\sqlfile.sql

    It worked for me:)

    0 讨论(0)
  • 2020-12-14 16:14

    One more possible cause can be the place you are trying to create dump. Writing mysqldump -u[username] -p yourdb > D:\backup\sqlfile.sql instead of mysqldump -u[username] -p yourdb > sqlfile.sql resolved my problem.

    0 讨论(0)
提交回复
热议问题