Tuesday, February 21, 2023

HOW TO CREATE A NEW INSTANCE PHPMYADMIN IN DOCKER, DIRECTLY TO YOUR CLOUD SERVER

You can use this whenever you want another instance of phpmyadmin connected to your cloud mysql server

docker run --name phpmyadminContainerName -d -e PMA_HOST=[hostname] -e PMA_USER=[user] -e PMA_PASSWORD=[password] -p 8088:80 phpmyadmin/phpmyadmin

Replace [YOUR_HOSTNAME], [YOUR_USERNAME], and [YOUR_PASSWORD] with your own values. This command will start the phpMyAdmin container in the background and expose it on port 8088 of your local machine. You can access phpMyAdmin by opening a web browser and navigating to http://localhost:8088.

No comments:

Post a Comment