Coming soon - Get a detailed view of why an account is flagged as spam!
view details
1
MariaDB container throws error with mysqldump when using one-line command
Post Body

I have the official MariaDB container running on 10.7.3-focal. When I use mysqldump within its bash environment it works: user@server:~$ docker exec -it mariadb bash root@ee8b55b1b2cd:/# mysqldump -u root -pPASSWORD database > /var/lib/mysql/database.sql

But when I try to use it in one line, it throws an error: ``` user@server:~$ docker exec -it mariadb mysqldump -u root -pPASSWORD database > /var/lib/mysql/database.sql

Returns this error

-bash: /var/lib/mysql/database.sql: No such file or directory ```

I have tried giving the command privilege and manually setting root user, via --privileged and -u root respectively. Does anyone have any suggestions?

Author
Account Strength
90%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,041
Link Karma
556
Comment Karma
485
Profile updated: 5 days ago
Posts updated: 4 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago