If you are using MySQL as the database, the instructions are as follows. The operating system is Ubuntu 18.04 LTS.
Type the following commands in the terminal.
sudo apt update
sudo apt upgrade
sudo apt install mysql-server
This will install the mySQL server.
You need to create user accounts and then run the following command and follow instructions.
sudo mysql_secure_installation