-->

Monday, January 9, 2023

[Solved] Database is uninitialized and password option is not specified

 

Issue:- 

When  launching a mysql container from an image from mysql:5.7 image the container stops with error message saying to put the environment variable for the mysql root password.

Error:- 

Effect:-

mysql container automatically goes down after few mins

Resolution:-
For making the container work you can pass the environment variables at the runtime with docker run which
would solve the issue here.

docker run -itd -p 3306:3306 -e MYSQL_ROOT_PASSWORD=abc --name couter-db mysql     

0 comments:

Post a Comment