Overview of the Problem
When running WordPress with MySQL in one container and PHPMyAdmin in another, users often encounter an error preventing them from accessing the database
. The source explains that this is primarily a network issue; Coolify auto-generates separate networks for different services, and because the containers are on different networks, they cannot communicate
----------------
commend
-------------------
docker network ls
docker ps
-----------
The Technical Solution
The video demonstrates a step-by-step process to link these containers:
Identify Network Names: Using a terminal (like Putty), the creator uses Docker commands to list the running containers and their specific network IDs
.
Locate the Target Network: Each service in Coolify has a unique, auto-generated network name (such as strings like ZRW or 12G)
.
Dashboard Configuration: You must navigate to the PHPMyAdmin settings in the Coolify dashboard and edit the configuration
.
Code Injection: The fix involves adding approximately five lines of network configuration code to the PHPMyAdmin service, manually specifying the network name used by the MySQL container
.
Verification: After restarting the container, the terminal will show that PHPMyAdmin is now connected to multiple networks, including the one used by the database
.
Final Result
By synchronizing the networks, the PHPMyAdmin dashboard becomes fully functional
. The user can then log in using their standard database username and password to manage their data successfully