clean-docker / Magento2

Docker Image to Magento 2 local development in Mac, Linux and Windows
https://hub.docker.com/r/rafaelcgstz/magento2/
MIT License
444 stars 251 forks source link

What is the mysql password? #44

Open omerolmez opened 6 years ago

omerolmez commented 6 years ago

I tried alternatives many times but it did not happen. Could you say mysql password?

Nerjuz commented 6 years ago

You for real?

rafaelstz commented 6 years ago

@omerolmez sure, you have a user called magento using the password magento which just can access the database magento.

You have a superuser as well, called root using the password root.

To access your MySQL out or inside of your container you can use these commands below.

Inside

mysql -h db -uroot -proot

Out

mysql -h 0.0.0.0 -u root -proot -P 3300
lucasaugustodeveloper commented 6 years ago

Good afternoon, here for me when I try to install the magento I get the error

SQLSTATE [HY000] [2002] No such file or directory

rafaelstz commented 6 years ago

Hi @laugustofrontend,

Are you trying to install using the terminal or using the install screen? Could you send me a print screen, please?

Thanks, Rafael

macfisher commented 6 years ago

The MySQL password works but does anyone know the admin panel password? I assumed following the same conventions--tried user:admin password:admin but it didn't work.

EDIT: Never mind I can just make my own admin user... EDIT: ./magento admin:user:create --admin-user='new-admin' --admin-password='!admin123!' --admin-email='info@domain.com' --admin-firstname='Jon' --admin-lastname='Doe'