{"id":95,"date":"2026-02-17T17:42:37","date_gmt":"2026-02-17T17:42:37","guid":{"rendered":"https:\/\/charliestelling.co.uk\/?p=95"},"modified":"2026-02-17T17:42:38","modified_gmt":"2026-02-17T17:42:38","slug":"mariadb-local-enviroment","status":"publish","type":"post","link":"https:\/\/charliestelling.co.uk\/?p=95","title":{"rendered":"MariaDB Local Enviroment"},"content":{"rendered":"\n<p class=\"\">Running a local MariaDB instance is the final piece of the puzzle. You have two main paths: installing it directly on your machine (the &#8220;old school&#8221; way) or using Docker (the modern, cleaner way).<\/p>\n\n\n\n<p class=\"\">I highly recommend <strong>Docker<\/strong>, as it keeps your computer clean and allows you to wipe the database and start over in seconds.<\/p>\n\n\n\n<p class=\"\">This requires <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/www.docker.com\/products\/docker-desktop\/\">Docker Desktop<\/a> to be installed.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li class=\"\"><strong>Run the container:<\/strong> Open your terminal and paste this command:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run --name my-mariadb -e MARIADB_ROOT_PASSWORD=password -p 3306:3306 -d mariadb:latest<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\"><code>--name<\/code>: The name of your container.<\/li>\n\n\n\n<li class=\"\"><code>-e MARIADB_ROOT_PASSWORD<\/code>: Sets your &#8220;root&#8221; user password to <code>password<\/code>.<\/li>\n\n\n\n<li class=\"\"><code>-p 3306:3306<\/code>: Maps the database port to your local machine.<\/li>\n<\/ul>\n\n\n\n<p class=\"\"><strong>Verify it&#8217;s running:<\/strong> Type <code>docker ps<\/code>. You should see <code>mariadb:latest<\/code> in the list.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Running a local MariaDB instance is the final piece of the puzzle. You have two main paths: installing it directly on your machine (the &#8220;old school&#8221; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":104,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/charliestelling.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/charliestelling.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/charliestelling.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/charliestelling.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/charliestelling.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=95"}],"version-history":[{"count":2,"href":"https:\/\/charliestelling.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":101,"href":"https:\/\/charliestelling.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/95\/revisions\/101"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/charliestelling.co.uk\/index.php?rest_route=\/wp\/v2\/media\/104"}],"wp:attachment":[{"href":"https:\/\/charliestelling.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/charliestelling.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/charliestelling.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}