cancel
Showing results for 
Search instead for 
Did you mean: 

Docker/Mac/Magento MySQL root password

Docker/Mac/Magento MySQL root password

I am using the following container:

 

https://hub.docker.com/r/magento/magento2devbox-web

 

How do I determine the MySQL root password?

2 REPLIES 2

Re: Docker/Mac/Magento MySQL root password

@SiteSmart 

 

Try with 

 

Username/Pass: root/root

or 

Username/Pass: root/

Manish Mittal
https://www.manishmittal.com/

Re: Docker/Mac/Magento MySQL root password

Hi @SiteSmart 

 

Please go to .env file of docker first. According to docker configuration default configuration values should be saved in this file.  Example:

MYSQL_DATABASE=xyz
MYSQL_USER=root
MYSQL_PASSWORD=root
MYSQL_ROOT_PASSWORD=root
DB_HOST=mysql
DB_DATABASE=xyz
DB_USERNAME=root
DB_PASSWORD=root
PMA_ARBITRARY=0
PMA_HOST=mysql
PMA_PORT=3306
PMA_USER=root
PMA_PASSWORD=root

And then add DB_PASSWORD with docker-compose.yml like:

environment:
      DB_HOST: ${DB_HOST}
      DB_DATABASE: ${DB_DATABASE}
      DB_USERNAME: ${DB_USERNAME}
      DB_PASSWORD: ${DB_PASSWORD}

It may help you!

Problem Solved? Please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!