{"id":99085,"date":"2021-01-26T11:00:00","date_gmt":"2021-01-26T09:00:00","guid":{"rendered":"https:\/\/examples.javacodegeeks.com\/?p=99085"},"modified":"2021-12-17T13:18:20","modified_gmt":"2021-12-17T11:18:20","slug":"how-to-run-mysql-and-phpmyadmin-using-docker","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/","title":{"rendered":"How to Run MySQL and phpMyAdmin Using Docker"},"content":{"rendered":"<p>In this article, we will learn how to deploy MySQL and phpMyAdmin using Docker.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-1-introduction\">1. Introduction<\/h2>\n<p>A container is a standard unit of software that packages up code and all its dependencies so the application runs quickly and reliably from one computing environment to another. A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries, and settings.<\/p>\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"alignright size-large\"><a href=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo.jpg\"><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo.jpg\" alt=\"docker phpmyadmin\" class=\"wp-image-31013\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo.jpg 150w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo-70x70.jpg 70w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\" id=\"h-2-install-mysql-in-docker\">2. Install MySQL in Docker<\/h2>\n<p>In this section, we will discuss how to download, run, and connect to the <code>MySQL<\/code> server <a href=\"https:\/\/hub.docker.com\/r\/phpmyadmin\/phpmyadmin\/\">using Docker<\/a>. <\/p>\n<h3 class=\"wp-block-heading\" id=\"h-2-1-download-mysql-docker-image\">2.1 Download MySQL Docker image<\/h3>\n<p>In this section, we will see how to download the MySQL docker image. Downloading the MySQL image is not strictly necessary &#8211; however, performing this before you create your Docker container ensures your local image is up to date. To download the MySQL Community Edition image, run this command:<\/p>\n<pre class=\"brush:bash\">docker pull mysql\/mysql-server\n<\/pre>\n<p>This will download the latest version of the image. You can also download a specific version by using the below command:<\/p>\n<pre class=\"brush:bash\">docker pull mysql\/mysql-server:tag\n<\/pre>\n<p>Where <em>&#8216;tag&#8217;<\/em> is the version of the image you want to download.<\/p>\n<p>You will see similar output as below:<\/p>\n<pre class=\"brush:bash\">~$ docker pull mysql\/mysql-server\nUsing default tag: latest\nlatest: Pulling from mysql\/mysql-server\n03e20c09154c: Pull complete\nbe7ba00cd800: Pull complete\n218845b603a2: Pull complete\n0807146aa37b: Pull complete\nDigest: sha256:5dfceab2e53e7dac983168c5f5d611d9d8e85c3bee7297c24c931d77fbeeaac3\nStatus: Downloaded newer image for mysql\/mysql-server:latest\ndocker.io\/mysql\/mysql-server:latest\n<\/pre>\n<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-2-2-starting\">2.2 Starting <\/h3>\n<p>In this section, we will see how to run the MySQL docker image. To run the MySQL run the below command:<\/p>\n<pre class=\"brush:bash\">~$ docker run -d mysql\/mysql-server\n<\/pre>\n<p>The <code>-d<\/code> option will run the image in detach mode. You will see the similar output as below:<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\"brush:bash\">~$ docker run -d mysql\/mysql-server\nce9a316046f06aaa7ca19de6414bbf98cdfc98b1039faf548dc90bddc3e8a733\n<\/pre>\n<p>You can give an optional <code>--name<\/code> parameter to give the name of the running image. If no name is provided a random name is generated. If the Docker image of the specified name and tag has not been downloaded by an earlier <code>docker pull<\/code> or <code>docker run<\/code> command, the image is now downloaded. After the download completes, initialization for the container begins, and the container appears in the list of running containers when you run the <code>docker ps<\/code> command.<\/p>\n<pre class=\"brush:bash\">~$ docker ps\nCONTAINER ID   IMAGE                COMMAND                  CREATED          STATUS                    PORTS                       NAMES\nce9a316046f0   mysql\/mysql-server   \"\/entrypoint.sh mysq\u2026\"   10 minutes ago   Up 10 minutes (healthy)   3306\/tcp, 33060-33061\/tcp   focused_ganguly\n~$\n<\/pre>\n<p>The output of the container can be monitored by the below command:<\/p>\n<pre class=\"brush:bash\">docker logs \n<\/pre>\n<p>You don&#8217;t need to give the full name &#8211; even the first few characters will do the job if it is able to recognise the container. Once the initialisation is finished, you can grab the password from the logs &#8211; <code>[Entrypoint] GENERATED ROOT PASSWORD: ylV3LYdQUGAtoJ@hivOsHAG#ON8<\/code><\/p>\n<h3 class=\"wp-block-heading\" id=\"h-2-3-connecting-to-server\">2.3 Connecting to server<\/h3>\n<p>Once the server is ready, you can run the <code>mysql<\/code> client within the MySQL Server container you just started and connect it to the MySQL Server. Use the <code>docker exec -it <\/code>command to start a mysql client inside the Docker container you have started. You can get the root password from the logs.<\/p>\n<pre class=\"brush:bash\">~$ docker exec -it ce9a316 mysql -uroot -p\nEnter password:\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\nYour MySQL connection id is 59\nServer version: 8.0.22\n\nCopyright (c) 2000, 2020, Oracle and\/or its affiliates. All rights reserved.\n\nOracle is a registered trademark of Oracle Corporation and\/or its\naffiliates. Other names may be trademarks of their respective\nowners.\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n<\/pre>\n<p>Because the <code>MYSQL_ONETIME_PASSWORD<\/code> option is true by default, after you have connected a <code>mysql<\/code> client to the server, you must reset the server root password by issuing this statement:[ulp id=&#8217;6PVIvOz3kDbYmNRn&#8217; name=&#8217;Docker Cookbook Inline&#8217;]<\/p>\n<pre class=\"brush:bash\">mysql&gt; ALTER USER 'root'@'localhost' IDENTIFIED BY 'mysql-password';\nQuery OK, 0 rows affected (0.07 sec)\n<\/pre>\n<p>Substitute <code>mysql-password<\/code> with the password of your choice. Once the password is reset, the server is ready for use.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-3-install-phpmyadmin-in-docker\">3. Install phpMyAdmin in Docker<\/h2>\n<p>In this section, we will see how to install the <code>phpMyAdmin<\/code> in Docker. <code>phpMyAdmin<\/code> connects using your MySQL server credentials<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-3-1-image-variants\">3.1 Image variants<\/h3>\n<p>We have three types of images to choose from:<\/p>\n<ol class=\"wp-block-list\">\n<li><code>apache<\/code> includes a full Apache webserver with PHP and includes everything needed to work out of the box. This is the default when only a version number is requested.<\/li>\n<li>fpm only starts a PHP FPM container. Use this variant if you already have a separate webserver. This includes more tools and is, therefore, a larger image than the <code>fpm-alpine<\/code> variation.<\/li>\n<li><code>fpm-alpine<\/code> has a very small footprint. It is based on Alpine Linux and only starts a PHP FPM process. Use this variant if you already have a separate webserver. If you need more tools that are not available on Alpine Linux, use the fpm image instead.<\/li>\n<\/ol>\n<h3 class=\"wp-block-heading\" id=\"h-3-2-starting-the-server\">3.2 Starting the server<\/h3>\n<p>Make sure the <code>MySQL<\/code> is running before starting the <code>phpMyAdmin<\/code> container. We need to link the <code>phpMyAdmin<\/code> image to the <code>MySQL<\/code> db container. To run the <code>phpMyAdmin<\/code> container run the below command:<\/p>\n<pre class=\"brush:bash\">docker run --name phpmyadmin -d --link ce9a316046f0:db -p 8080:80 phpmyadmin\n<\/pre>\n<p><code>ce9a316046f0<\/code> is the container id of the <code>MySQL<\/code> container. If you are running this for the first time the image will be downloaded from the docker hub. You will see similar output as below:<\/p>\n<pre class=\"brush:bash\">docker run --name phpmyadmin -d --link ce9a316046f0:db -p 8080:80 phpmyadmin\n9ff20fe03253bb314343a77ffb9e98e44d7683a8a9af894409714759c562df2e\n<\/pre>\n<p>When you use the <code>run<\/code> command you don&#8217;t need to explicitly download the image using the <code>pull<\/code> command. Now if you do <code>docker ps<\/code> you should be able to find both the MySQL and phpMyAdmin running:<\/p>\n<pre class=\"brush:bash\">~$ docker ps\nCONTAINER ID   IMAGE                COMMAND                  CREATED         STATUS                PORTS                       NAMES\n9ff20fe03253   phpmyadmin           \"\/docker-entrypoint.\u2026\"   7 seconds ago   Up 5 seconds          0.0.0.0:8080-&gt;80\/tcp        phpmyadmin\nce9a316046f0   mysql\/mysql-server   \"\/entrypoint.sh mysq\u2026\"   7 days ago      Up 7 days (healthy)   3306\/tcp, 33060-33061\/tcp   focused_ganguly\n<\/pre>\n<p>If the MySQL is not running on the same machine where you are running the phpMyAdmin you can provide the host and port in the <code>PMA_HOST<\/code> and <code>PMA_PORT<\/code> environment variable.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-4-summary\">4. Summary<\/h2>\n<p>In this article, we started by seeing what is a container. Then we moved on to the instruction to download and install the MySQL and phpMyAdmin using Docker. We also looked at different environment variables available in case we don&#8217;t want to use the default configuration.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will learn how to deploy MySQL and phpMyAdmin using Docker. 1. Introduction A container is a standard unit of software that packages up code and all its dependencies so the application runs quickly and reliably from one computing environment to another. A Docker container image is a lightweight, standalone, executable package &hellip;<\/p>\n","protected":false},"author":34,"featured_media":31013,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1354],"tags":[647,46685],"class_list":["post-99085","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","tag-mysql","tag-php-my-admin"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Run MySQL &amp; phpMyAdmin Using Docker - Examples Java Code Geeks<\/title>\n<meta name=\"description\" content=\"In this article, we will learn how to deploy MySQL and phpMyAdmin using Docker. 1. Introduction A container is a standard unit of software that packages\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Run MySQL &amp; phpMyAdmin Using Docker - Examples Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"In this article, we will learn how to deploy MySQL and phpMyAdmin using Docker. 1. Introduction A container is a standard unit of software that packages\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-26T09:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-17T11:18:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Mohammad Meraj Zia\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mohammad Meraj Zia\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/\"},\"author\":{\"name\":\"Mohammad Meraj Zia\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/442b4f9b8a4aa7e12376464fc354f8ed\"},\"headline\":\"How to Run MySQL and phpMyAdmin Using Docker\",\"datePublished\":\"2021-01-26T09:00:00+00:00\",\"dateModified\":\"2021-12-17T11:18:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/\"},\"wordCount\":770,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo.jpg\",\"keywords\":[\"mysql\",\"php-my-admin\"],\"articleSection\":[\"Docker\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/\",\"name\":\"Run MySQL & phpMyAdmin Using Docker - Examples Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo.jpg\",\"datePublished\":\"2021-01-26T09:00:00+00:00\",\"dateModified\":\"2021-12-17T11:18:20+00:00\",\"description\":\"In this article, we will learn how to deploy MySQL and phpMyAdmin using Docker. 1. Introduction A container is a standard unit of software that packages\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DevOps\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/devops\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Docker\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/devops\/docker\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to Run MySQL and phpMyAdmin Using Docker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/442b4f9b8a4aa7e12376464fc354f8ed\",\"name\":\"Mohammad Meraj Zia\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2020\/06\/IMG-20200324-WA0003-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2020\/06\/IMG-20200324-WA0003-96x96.jpg\",\"caption\":\"Mohammad Meraj Zia\"},\"description\":\"Senior Java Developer\",\"sameAs\":[\"http:\/\/www.javacodegeeks.com\/\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/mohammad-zia\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Run MySQL & phpMyAdmin Using Docker - Examples Java Code Geeks","description":"In this article, we will learn how to deploy MySQL and phpMyAdmin using Docker. 1. Introduction A container is a standard unit of software that packages","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:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/","og_locale":"en_US","og_type":"article","og_title":"Run MySQL & phpMyAdmin Using Docker - Examples Java Code Geeks","og_description":"In this article, we will learn how to deploy MySQL and phpMyAdmin using Docker. 1. Introduction A container is a standard unit of software that packages","og_url":"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2021-01-26T09:00:00+00:00","article_modified_time":"2021-12-17T11:18:20+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo.jpg","type":"image\/jpeg"}],"author":"Mohammad Meraj Zia","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Mohammad Meraj Zia","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/"},"author":{"name":"Mohammad Meraj Zia","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/442b4f9b8a4aa7e12376464fc354f8ed"},"headline":"How to Run MySQL and phpMyAdmin Using Docker","datePublished":"2021-01-26T09:00:00+00:00","dateModified":"2021-12-17T11:18:20+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/"},"wordCount":770,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo.jpg","keywords":["mysql","php-my-admin"],"articleSection":["Docker"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/","url":"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/","name":"Run MySQL & phpMyAdmin Using Docker - Examples Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo.jpg","datePublished":"2021-01-26T09:00:00+00:00","dateModified":"2021-12-17T11:18:20+00:00","description":"In this article, we will learn how to deploy MySQL and phpMyAdmin using Docker. 1. Introduction A container is a standard unit of software that packages","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/12\/docker-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/how-to-run-mysql-and-phpmyadmin-using-docker\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"DevOps","item":"https:\/\/examples.javacodegeeks.com\/category\/devops\/"},{"@type":"ListItem","position":3,"name":"Docker","item":"https:\/\/examples.javacodegeeks.com\/category\/devops\/docker\/"},{"@type":"ListItem","position":4,"name":"How to Run MySQL and phpMyAdmin Using Docker"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/442b4f9b8a4aa7e12376464fc354f8ed","name":"Mohammad Meraj Zia","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2020\/06\/IMG-20200324-WA0003-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2020\/06\/IMG-20200324-WA0003-96x96.jpg","caption":"Mohammad Meraj Zia"},"description":"Senior Java Developer","sameAs":["http:\/\/www.javacodegeeks.com\/"],"url":"https:\/\/examples.javacodegeeks.com\/author\/mohammad-zia\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/99085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=99085"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/99085\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/31013"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=99085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=99085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=99085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}