Skip to content

Instantly share code, notes, and snippets.

View Olegt0rr's full-sized avatar

Oleg A. Olegt0rr

View GitHub Profile
@Olegt0rr
Olegt0rr / root-password-MariaDB-docker-compose.md
Created October 4, 2020 11:11 — forked from rordi/root-password-MariaDB-docker-compose.md
Change root password in MariaDB Docker container running with docker-compose

Override the entrypoint in docker-compose.yml for the MariaDB Docker container by adding:

entrypoint: mysqld_safe --skip-grant-tables --user=mysql

The start up the Docker Compose stack:

$> docker-compose up -d

Then login to the Docker container: