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

24 Zeilen
668 B
Markdown

## Run a manual mysql_upgrade
This step is usually not necessary.
2023-01-13 18:16:08 +01:00
=== "docker compose (Plugin)"
``` bash
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
```
=== "docker-compose (Standalone)"
``` bash
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
```