It's best to install MySQL on the same system we'll be serving files from. This makes sense as we'll need both the file server and the database server to be online to play content, so we may as well confine these services to one system.
The MySQL package can be fetched via your distribution's default repositories, as follows:
First, we need to fetch the packages using our distribution's package manager as follows:
On Debian/Linux Mint or Ubuntu systems, we can do this with the following command:
sudo apt-get install mysql-server
On Redhat, CentOS, and Fedora systems, we can do this with the following command:
sudo yum install mysql-server
Now, we need to allow remote access to the MySQL database service. We can do that with the following command:
sed -i /etc/mysql/my.cnf -e 's/bind-address/#bind-address/'
We now need to restart the MySQL service, which can be done with the following command:
sudo service mysql restart