mysqldump Error 1045 Access denied despite correct passwords etc

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

    This worked for me

    mysqldump -u root -p mydbscheme > mydbscheme_dump.sql
    

    after issuing the command it asks for a password:

    Enter password:
    

    entering the password will make the dump file.

提交回复
热议问题