Closed sbrueseke closed 6 years ago
db connect is not working when using this docker-compose. After enterning credentials for automatic installation the following errors are shown:
Database error: Could not connect to database! SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.22.0.4' (using password: NO)
Error: Could not connect to database! SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.22.0.4' (using password: NO)
DB and tables are going to be created, but app container is trying to connect to his own ip.
docker-composer file: version: '2' services: phpipam-mysql: image: mysql:5.6 container_name: phpipam-mysql environment:
/usr/local/phpipam/ipam-mysql:/var/lib/mysql
phpipam: image: pierrecdn/phpipam container_name: phpipam environment:
It looks like composer version 2 or higher is not editing /etc/hosts anymore. Maybe this is the root cause.
sorry, missed the docu
db connect is not working when using this docker-compose. After enterning credentials for automatic installation the following errors are shown:
Database error: Could not connect to database! SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.22.0.4' (using password: NO)
Error: Could not connect to database! SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.22.0.4' (using password: NO)
DB and tables are going to be created, but app container is trying to connect to his own ip.
docker-composer file: version: '2' services: phpipam-mysql: image: mysql:5.6 container_name: phpipam-mysql environment:
/usr/local/phpipam/ipam-mysql:/var/lib/mysql
phpipam: image: pierrecdn/phpipam container_name: phpipam environment:
It looks like composer version 2 or higher is not editing /etc/hosts anymore. Maybe this is the root cause.