mailcow-dockerized-docs/docs/debug-mysql_upgrade.md

17 Zeilen
369 B
Markdown

2019-12-24 11:28:10 +01:00
## Run a manual mysql_upgrade
This step is usually not necessary.
```
docker-compose stop mysql-mailcow watchdog-mailcow
docker-compose run --rm --entrypoint '/bin/sh -c "gosu mysql mysqld --skip-grant-tables & sleep 10 && bash && exit 0"' mysql-mailcow
```
As soon as the SQL shell spawned, run `mysql_upgrade` and exit the container:
```
mysql_upgrade
exit
```