Download docker phpmyadmin8/5/2023 ![]() ![]() To connect to MySQL, you’d then run mysql -u cms -h mysql -p cms That will get you a shell inside the web container. Then, substitute name in the following: docker exec -ti name bash You’re looking for the container name with web in the name - in the example above that is xibocms_web_1. Depending on your folder name, that will look something like this: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESĢ8a6c69ec7be xibosignage/xibo-cms:latest "/entrypoint.sh" 2 weeks ago Up 16 seconds 0.0.0.0:80->80/tcp xibocms_web_1Ī8fdca5d77dd xibosignage/xibo-xmr:latest "/entrypoint.sh" 2 weeks ago Up 17 seconds 0.0.0.0:9505->9505/tcp, 50001/tcp xibocms_xmr_1Ī21e1b4c6558 mysql:5.6 "docker-entrypoint." 6 weeks ago Up 17 seconds 0.0.0.0:3315->3306/tcp xibocms_db_1 ![]() The resulting output will show a list of running docker containers, one of these will be the web container. This can be done using the docker ps command. To do either of these things there are two options.īefore you can run a statement inside the docker container you will need to find the container name. While troubleshooting an issue you maybe asked to run a SQL statement on your database Docker container, or you may want to run a statement yourself for another purpose. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |