Hi,
I generally use following debugging steps when something similar happens:
- Check if disk is not full. Command:
df -h /
- Check if docker container/s are running or not. Command:
docker container ls
- Check if running MySQL command with hostname, username and password from PHP container(or ee shell site-name.tld) is working or not.
- Check the logs of DB container. Command:
docker logs services_global-db_1
You can use the following command to get MySQL access
# access as root:
docker-compose -f /opt/easyengine/services/docker-compose.yml exec global-db bash -c 'mysql -uroot -p${MYSQL_ROOT_PASSWORD}'
This command will give you access of MySQL shell as root user.
You can access MySQL docker container shell with following command
docker exec -it services_global-db_1 bash