Closed
Description
I'm using docker-compose with existant datas on my mysql container.
Is it possible to execute mysql_upgrade without create my own image of mysql based on the official mysql?
In fact, when I change mysql version from 5.7.7 to 5.7.9, I'm obliger to call mysql_upgrade to have the right database, table, ... structures.
I'm trying in docker-compose to execute multiple command like:
command: mysqld && mysql_upgrade
But your default entrypoint add "&& mysql_upgrade" like parameters of mysqld and not to execute another process.
I was oblige to override the docker-entrypoint.sh to forced mysql_upgrade (see attach file)
docker-entrypoint.sh.zip