mysqldump Error 1045 Access denied despite correct passwords etc

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

    Putting -p as the first option worked for me on Windows Server 2012R2 (in cmd.exe as Admin).

    mysqldump.exe –p --user=root  --databases DBname --result-file=C:\DBname.sql
    

提交回复
热议问题