in This Tutorial you will learn " How To install PhpMyAdmin using Docker on Ubuntu 20 Linux? "
PhpMyAdmin is a free web application that provides a convenient GUI for working with the MySQL database management system.
Docker is an open platform for developing, shipping, and running applications.
_________________________________________________________________________________________
Server - Os: Ubuntu 20.04.3 LTS 64Bit | IP -192.168.1.80 |Hostname - ubuntu.example.com
_________________________________________________________________________________________
lsb_release -d ; hostname -I ; hostname
apt update ; apt -y install docker.io docker-compose -y
docker --version ; docker-compose --version
docker network create phpmyadmin-network
docker pull mysql
docker pull phpmyadmin/phpmyadmin
docker volume create mysql-data
docker volume inspect mysql-data
ln -s /var/lib/docker/volumes/mysql-data/_data /mysql
docker run -d --name mysql-server -v mysql-data:/var/lib/mysql --network phpmyadmin-network -e "MYSQL_ROOT_PASSWORD=newpassword" mysql
docker run -d --name phpmyadmin -p 80:80 --network phpmyadmin-network -e PMA_HOST=mysql-server phpmyadmin/phpmyadmin
localhost
Username: root | Password: newpassword
_________________________________________________________________________________________
Tuesday, February 1, 2022
How to install PhpMyAdmin using Docker on Ubuntu 20 Linux
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment