mysqldump Error 1045 Access denied despite correct passwords etc

后端 未结 28 1181
执笔经年
执笔经年 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:14

    This solution might be one of the last to try/least likely to be the culprit, but this was my problem...

    My problem was that the directory I was trying to dump to needed admin privileges to write to and that's what was causing the mysqldump command to return "Access Denied".

    I set the dump file path to my desktop dir and then it worked.

    This was on Windows.

提交回复
热议问题