[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     

Comments

Popular posts from this blog

[Solved] Gitlab remote: ERROR: Your SSH key has expired.

[Resolved] groupVersion shouldn't be empty

[Solved] Fingerprint sha256 has already been taken