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:
We recommend to answer Yes to all the security questions in order to protect the MySQL server and implement some best practices.