mathz.nu Asterisk Blacklist Hobby webbhotell

2021/10/27

Update MYSQL database in Docker

Filed under: Uncategorized — Mathz @ 16:51
docker run --rm -ti -v <full patch to db-files>:/var/lib/mysql mysql:5.7 bash

You’ll see a command prompt inside the MySQL container. Run the following command:

mysqld_safe --skip-grant-tables &

MySQL will start up. Wait 10 seconds or so for that to happen, and then run the following. Note you won’t see a command prompt, so just type away and it will work!

mysql_upgrade

Powered by WordPress