
MariaDB Local Enviroment
Running a local MariaDB instance is the final piece of the puzzle. You have two main paths: installing it directly on your machine (the “old school” way) or using Docker (the modern, cleaner way).
I highly recommend Docker, as it keeps your computer clean and allows you to wipe the database and start over in seconds.
This requires Docker Desktop to be installed.
- Run the container: Open your terminal and paste this command:
docker run --name my-mariadb -e MARIADB_ROOT_PASSWORD=password -p 3306:3306 -d mariadb:latest
--name: The name of your container.-e MARIADB_ROOT_PASSWORD: Sets your “root” user password topassword.-p 3306:3306: Maps the database port to your local machine.
Verify it’s running: Type docker ps. You should see mariadb:latest in the list.
About Me

Charlie Stelling
Tinkerer
Hello, im charlie a passionate tinkerer, who loves sharing ideas, stories, and experiences. I assist rough sleepers in transitioning into long-term, stable housing.
Follow Me
Connect with me and be part of my community.
Leave a Reply