Most commands are the same, even the installation is similar. MySQL and MariaDB are almost identical when it comes to basic usage in a LAMP stack.We tested this on an Ubuntu 20.04 server.įor the first part of our LAMP series, go to our How to Install and Optimize Apache on Ubuntu tutorial. This tutorial is intended for Ubuntu servers, the instructions should work on any LTS release of Ubuntu, including Ubuntu 22.04, 20.04, Ubuntu 18.04, and even non-LTS releases like Ubuntu 21.10 and other Ubuntu-based distros. The second part of our LAMP tutorial series: how to install MySQL (or MariaDB) on an Ubuntu server.