docker-library / mysql

Docker Official Image packaging for MySQL Community Server
https://dev.mysql.com/
GNU General Public License v2.0
2.42k stars 2.18k forks source link

How to install mysqlbinlog tool in arm64 8.0.36 version #1032

Closed xkz130 closed 4 months ago

xkz130 commented 4 months ago

I hope to install the mysqlbinlog tool when compiling mysql8 using Dockerfile.debian, but the installation failed. What should I do? thanks image

LaurentGoderre commented 4 months ago

Are you on a Mac with Apple M1 or M2 chip? if so, you should use `--platform=linux/amd64' because mysql doesn't have arm64 binaries in debian.

xkz130 commented 4 months ago

Are you on a Mac with Apple M1 or M2 chip? if so, you should use `--platform=linux/amd64' because mysql doesn't have arm64 binaries in debian.

I am an ARM machine and I need to install the mysqlbinlog tool in the ARM version of MySQL. However, it is only available in MySQL: 8.0.36-debian and not in the ARM version, so I need to install it. However, I am unable to install it at this time

tianon commented 4 months ago

You'll probably have to switch from using upstream's Docker-crafted packages to using their larger generic packages.

See https://dev.mysql.com/doc/mysql-installation-excerpt/8.3/en/linux-installation-rpm.html for upstream documentation along those lines. Doing so is unfortunately out of scope for this repository. :bow: :heart: