install php mysql ubuntu 20.04 code example
Example 1: install mysql ubuntu 18.04
sudo apt update
sudo apt install mysql-server
sudo mysql_secure_installation
Example 2: ubuntu 20.04 php-mysql
sudo apt install php libapache2-mod-php php-mysql
Example 3: install phpmyadmin ubuntu 18.04
Open a terminal window on your Ubuntu Server.
Issue the command sudo apt-get install phpmyadmin php-mbstring php-gettext -y.
When prompted, type your sudo password.
Allow the installation to complete.