Fix mysqlbinlog command missing for docker containers

Sometimes we want to use the MySQL docker container to test some binlog-related features, but unfortunately, the default tag of the official docker image doesn’t contain the binlog utilities, please refer to https://github.com/docker-library/mysql/issues/907 and https://github.com/docker-library/mysql/issues/847

What shall we do about this case?

For testing, it’s pretty straightforward: just use the Debian-based images

for example previously used an image that doesn’t contain the binlog tools: mysql:5.7.39, then we switch to using mysql:5.7.39-debian, the mysqlbinlog will appear after we do the switch.

留下评论

您的电子邮箱地址不会被公开。 必填项已用*标注