{"id":5383,"date":"2021-12-23T04:43:09","date_gmt":"2021-12-23T04:43:09","guid":{"rendered":"https:\/\/studysection.com\/blog\/?p=5383"},"modified":"2021-12-23T05:13:45","modified_gmt":"2021-12-23T05:13:45","slug":"quick-guide-to-run-mariadb-with-docker-on-ubuntu","status":"publish","type":"post","link":"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/","title":{"rendered":"Quick guide to run MariaDB with Docker on Ubuntu"},"content":{"rendered":"<p>I already have <a href=\"https:\/\/studysection.com\/blog\/mysql-triggers\/\">MySQL<\/a> running on my machine but I need MariaDB as well.<br \/>\nLogin with the root user and run the following command <\/p>\n<h2>Step1:<\/h2>\n<p><strong><em># docker pull MariaDB<\/em><\/strong><br \/>\n<code>root@webnerhost:# docker pull mariadb<br \/>\nUsing default tag: latest<br \/>\nlatest: Pulling from library\/mariadb<br \/>\n7b1a6ab2e44d: Already exists<br \/>\n034655750c88: Already exists<br \/>\nf0b757a2a0f0: Already exists<br \/>\n4bbcce26bc5e: Pull complete<br \/>\n04f220ee9266: Pull complete<br \/>\n89c8a77f7842: Pull complete<br \/>\nd1de5652303b: Pull complete<br \/>\nef669123e59e: Pull complete<br \/>\ne5cec468d3a6: Pull complete<br \/>\nb14b1ba1d651: Pull complete<br \/>\nDigest: sha256:0f04ae6f30c5a3295fb7cc9be5780c15ff21d6028f999b19f5803114c1e8559e<br \/>\nStatus: Downloaded newer image for mariadb:latest<br \/>\ndocker.io\/library\/mariadb:latest<br \/>\n<\/code><\/p>\n<h3>Step2:<\/h3>\n<p><strong><em>#docker run &#8211;name MariadbContainer -p 3311:3306 -e MYSQL_ROOT_PASSWORD=yourpasssword -d mariadb<\/em><\/strong><br \/>\n<code>root@webnerhost:~# docker run --name MariadbContainer -p 3311:3306 -e MYSQL_ROOT_PASSWORD=yourpasssword -d mariadb<br \/>\n15586a3c9dc2d51fb0495166e0d715408ff3f7e5b9d767b242edb0338f7084e5<\/code><\/p>\n<p>You can run the above command without using the &#8211;name flag, docker engine will create a container name with the default container value. <\/p>\n<p><strong>RUN:<\/strong> for creating and start<br \/>\n<strong>&#8211;name:<\/strong> give the name to the container<br \/>\n<strong>-p:<\/strong> to expose the port globally<br \/>\n<strong>exec:<\/strong> to go inside to running container or connect to a running container<br \/>\n<strong>-it:<\/strong> for interactive terminal<\/p>\n<h3>Step 3:<\/h3>\n<p><strong><em>#docker exec -it mariadbContainer mysql -u root -p<\/em><\/strong><\/p>\n<p><code>root@webnerhost:~# docker exec -it MariadbContainer mysql -u root -p<\/code><br \/>\nEnter password:<br \/>\nWelcome to the MariaDB monitor.  Commands end with ; or \\g.<br \/>\nYour MariaDB connection id is 3<br \/>\nServer version: 10.6.5-MariaDB-1:10.6.5+maria~focal mariadb.org binary distribution<\/p>\n<p>Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.<\/p>\n<p>Type <strong>&#8216;help;&#8217;<\/strong> or <strong>&#8216;\\h&#8217;<\/strong> for help. Type <strong>&#8216;\\c&#8217;<\/strong> to clear the current input statement.<\/p>\n<p>MariaDB [(none)]><\/p>\n<p>Now you can work with MariaDB.<\/p>\n<p><small><em>The English language is the most widely used language as a medium of communication around the world. Having a certification for the English language can be an advantage. StudySection provides an <a href=\"https:\/\/www.studysection.com\/english-language-advanced\">English certification exam<\/a> that tests English language proficiency in English grammar, reading, and writing.<\/em><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I already have MySQL running on my machine but I need MariaDB as well. Login with the root user and<\/p>\n","protected":false},"author":1,"featured_media":5384,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[720,530],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Quick guide to run MariaDB with Docker on Ubuntu - SS<\/title>\n<meta name=\"description\" content=\"I already have MySQL running on my machine but I need MariaDB. Login with root user and run following command: Step1:# docker pull MariaDB\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Quick guide to run MariaDB with Docker on Ubuntu - SS\" \/>\n<meta property=\"og:description\" content=\"I already have MySQL running on my machine but I need MariaDB. Login with root user and run following command: Step1:# docker pull MariaDB\" \/>\n<meta property=\"og:url\" content=\"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Posts on famous people, innovations and educational topics\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/studysection\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-23T04:43:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-23T05:13:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/12\/MariaDB.png\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin-studysection-blog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@studysection\" \/>\n<meta name=\"twitter:site\" content=\"@studysection\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin-studysection-blog\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/\"},\"author\":{\"name\":\"admin-studysection-blog\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\"},\"headline\":\"Quick guide to run MariaDB with Docker on Ubuntu\",\"datePublished\":\"2021-12-23T04:43:09+00:00\",\"dateModified\":\"2021-12-23T05:13:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/\"},\"wordCount\":221,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"keywords\":[\"mariadb\",\"Ubuntu\"],\"articleSection\":[\"Learn and Grow\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/\",\"url\":\"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/\",\"name\":\"Quick guide to run MariaDB with Docker on Ubuntu - SS\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/#website\"},\"datePublished\":\"2021-12-23T04:43:09+00:00\",\"dateModified\":\"2021-12-23T05:13:45+00:00\",\"description\":\"I already have MySQL running on my machine but I need MariaDB. Login with root user and run following command: Step1:# docker pull MariaDB\",\"breadcrumb\":{\"@id\":\"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/studysection.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quick guide to run MariaDB with Docker on Ubuntu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/studysection.com\/blog\/#website\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"name\":\"Blog Posts on famous people, innovations and educational topics\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/studysection.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/studysection.com\/blog\/#organization\",\"name\":\"StudySection\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"contentUrl\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"width\":920,\"height\":440,\"caption\":\"StudySection\"},\"image\":{\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/studysection\",\"https:\/\/twitter.com\/studysection\",\"https:\/\/www.instagram.com\/study.section\/\",\"https:\/\/www.linkedin.com\/company\/studysection\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\",\"name\":\"admin-studysection-blog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"caption\":\"admin-studysection-blog\"},\"url\":\"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Quick guide to run MariaDB with Docker on Ubuntu - SS","description":"I already have MySQL running on my machine but I need MariaDB. Login with root user and run following command: Step1:# docker pull MariaDB","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"Quick guide to run MariaDB with Docker on Ubuntu - SS","og_description":"I already have MySQL running on my machine but I need MariaDB. Login with root user and run following command: Step1:# docker pull MariaDB","og_url":"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/","og_site_name":"Blog Posts on famous people, innovations and educational topics","article_publisher":"https:\/\/www.facebook.com\/studysection","article_published_time":"2021-12-23T04:43:09+00:00","article_modified_time":"2021-12-23T05:13:45+00:00","og_image":[{"width":300,"height":200,"url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/12\/MariaDB.png","type":"image\/png"}],"author":"admin-studysection-blog","twitter_card":"summary_large_image","twitter_creator":"@studysection","twitter_site":"@studysection","twitter_misc":{"Written by":"admin-studysection-blog","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/#article","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/"},"author":{"name":"admin-studysection-blog","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402"},"headline":"Quick guide to run MariaDB with Docker on Ubuntu","datePublished":"2021-12-23T04:43:09+00:00","dateModified":"2021-12-23T05:13:45+00:00","mainEntityOfPage":{"@id":"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/"},"wordCount":221,"commentCount":0,"publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"keywords":["mariadb","Ubuntu"],"articleSection":["Learn and Grow"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/","url":"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/","name":"Quick guide to run MariaDB with Docker on Ubuntu - SS","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/#website"},"datePublished":"2021-12-23T04:43:09+00:00","dateModified":"2021-12-23T05:13:45+00:00","description":"I already have MySQL running on my machine but I need MariaDB. Login with root user and run following command: Step1:# docker pull MariaDB","breadcrumb":{"@id":"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/studysection.com\/blog\/quick-guide-to-run-mariadb-with-docker-on-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/studysection.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Quick guide to run MariaDB with Docker on Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/studysection.com\/blog\/#website","url":"https:\/\/studysection.com\/blog\/","name":"Blog Posts on famous people, innovations and educational topics","description":"","publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/studysection.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/studysection.com\/blog\/#organization","name":"StudySection","url":"https:\/\/studysection.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","contentUrl":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","width":920,"height":440,"caption":"StudySection"},"image":{"@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/studysection","https:\/\/twitter.com\/studysection","https:\/\/www.instagram.com\/study.section\/","https:\/\/www.linkedin.com\/company\/studysection"]},{"@type":"Person","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402","name":"admin-studysection-blog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","caption":"admin-studysection-blog"},"url":"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/"}]}},"views":372,"_links":{"self":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/5383"}],"collection":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/comments?post=5383"}],"version-history":[{"count":4,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/5383\/revisions"}],"predecessor-version":[{"id":5388,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/5383\/revisions\/5388"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media\/5384"}],"wp:attachment":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media?parent=5383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/categories?post=5383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/tags?post=5383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}