Skip to content

Docker Exec Backup Error 1045 #1393

@BobCumberbatch

Description

@BobCumberbatch

Hi Jan,
I run part-db in a container in a local raspberry pi5 with MySQL. I have been running this command to perform a back up. I am running Version: 2.12.0

BACKUP Docker Exec command I have used successfully until now
docker exec mysql-container sh -c 'mysqldump -u root -pYourPassword dbname' > dump.sql

I now get this error:

"Enter password: mysqldump: Got error: 1045: Access denied for user ' root'(a)'localhost' (using password: NO) when trying to connect"

Are you able to advise how I need to change this command to get backup to run successfully please?

Thanks, Bob

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions