管理 phpMyAdmin Docker容器,用于本地开发环境。提供位于 http://localhost:8081 的 MySQL Web UI,需具备 mysql‑manager 与 proxy‑man...
Manages the phpMyAdmin Docker container, providing a web UI for MySQL database management.
text
phpmyadmin-manager/
├── docker-compose.yml # phpMyAdmin 5.2 container
└── run.sh # lifecycle CLI
Connects to the shared nginx-proxy_net network and reaches MySQL at codai_db:3306. No data is persisted — phpMyAdmin is stateless.
bash
./run.sh start # start phpMyAdmin container
./run.sh stop # stop container
./run.sh status # show status and URL
./run.sh open # print access URL
Check your session context for the absolute script path, then run:
bash
<plugin-root>/phpmyadmin-manager/run.sh start
Open http://localhost:8081 in a browser. Login: root / MySQL root password.
bash
<plugin-root>/phpmyadmin-manager/run.sh status
Start in this order:
proxy-manager start — creates the shared Docker networkmysql-manager start — MySQL must be running before phpMyAdmin connectsVariableDefaultPurposePMA_CONTAINER``codai_phpmyadminContainer namePMA_PORT``8081Host portMYSQL_CONTAINER``codai_dbMySQL hostname on shared netMYSQL_ROOT_PASSWORD``secretMySQL root passwordPMA_UPLOAD_LIMIT``64MMax SQL file upload sizeCODAI_NETWORK``nginx-proxy_netShared Docker network name
mysql-manager before this plugin — phpMyAdmin cannot connect without MySQL.8081 is bound to 127.0.0.1 — accessible from the host only.stop when done; the container uses restart: unless-stopped and survives reboots.proxy-manager — creates the shared Docker network (start first)mysql-manager — MySQL container that phpMyAdmin connects to