How to install MySQL server on Debian or Ubuntu server?
On-Premise
As Matomo uses MySQL, it is necessary that it is installed and configured for Matomo to work.
The latest MySQL server can be installed with:
$ sudo apt-get update
$ sudo apt-get install mysql-server
Then run the MySQL secure installation tool to improve the default security settings:
$ mysql_secure_installation
We recommend to answer Yes to all the security questions in order to protect the MySQL server and implement some best practices.