小编Nor*_*ack的帖子

Error: database is uninitialized and password option is not specified

I'm new to docker. I've been following this tutorial: https://medium.com/coderscorner/connecting-to-mysql-through-docker-997aa2c090cc . I've set up the root password but once I tried to access the mysql command, it throws out this database is uninitialized error. Also, when I do docker-compose up command to pull the needed modules, it gives out an django.db.utils.InternalError: (1049, "Unknown database 'bitpal'"). The command I placed was:

docker run --name=mysql -e MYSQL_USER=root MYSQL_ROOT_PASSWORD=password -d mysql

I reckon I've searched for answers here but I couldn't be …

mysql bash docker

2
推荐指数
1
解决办法
9167
查看次数

标签 统计

bash ×1

docker ×1

mysql ×1