mysqldump Error 1045 Access denied despite correct passwords etc

后端 未结 28 1168
执笔经年
执笔经年 2021-01-30 12:56

This is a tricky one, I have the following output:

mysqldump: Got error: 1045: Access denied for user \'root\'@\'localhost\' (using password: YES) when tr

28条回答
  •  礼貌的吻别
    2021-01-30 13:08

    In my case, I could access correctly with mysql.exe but not with mysqldump.exe.

    The problem was the port for my connection was not the default one (3306) and I had to put the mysqldump port work with (-P3307)

    mysqldump -u root -p -P3307 my_database > /path/backup_database

提交回复
热议问题