Skip to content

Instantly share code, notes, and snippets.

@sidneydemoraes
Created August 2, 2019 17:20
Show Gist options
  • Save sidneydemoraes/6f662ccd7fd87db31592158738f95be9 to your computer and use it in GitHub Desktop.
Save sidneydemoraes/6f662ccd7fd87db31592158738f95be9 to your computer and use it in GitHub Desktop.
Mysqldump client for DBeaver with Docker (without installing mysql-client)
#!/bin/sh
# File location: /usr/local/bin/mysqldump
# File permission: +x
docker run --rm mysql:latest /usr/bin/mysqldump
@albertopriore
Copy link

@sidneydemoraes did you have a chance to check it out?

@sidneydemoraes
Copy link
Author

sidneydemoraes commented Mar 22, 2024

@albertopriore I took a look at the error message again and now I think I can see the big picture.
That error log you sent is from DBeaver, right? I noticed that there are Java errors there.
In that case it looks like for some reason DBeaver cannot find docker executable.
Do you run DBeaver as another user?

I'd do this if I were you. Try to run a full mysqldump command straight from commandline. If it works (and looks like it should since you were able to see its version), the problem resides in how you run DBeaver and how the mysqldump script was setup.
It's been a long time I used this solution so TBH I don't remember if I had to do anything special in DBeaver.

@albertopriore
Copy link

That error log you sent is from DBeaver, right?

Yes correct.

Do you run DBeaver as another user?

No I don't but could be that as you said the DBeaver cannot find docker executable.

I tried but I'll give up for now, I'll just use another way with a command outside of DBeaver.

Thanks a lot anyway!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment