In my previous article, I've introduced a USE flag that creates a dependency between lighttp and MySQL. This dependency automates the installation of the RDBMS while installing the web server. Thus, there should be a freshly installed MySQL on your desktop. Even if we plan on installing an administration tool for it, phpMyAdmin, there are some minor configuration steps that needs to be done, like creating a default database, a user and priviledge table, and few other things:

ebuild `equery w mysql` config

To secure the installation, start the MySQL's service and issue the following command, its steps are pretty informative:

/etc/init.d/mysql start
mysql_secure_installation

Now as a regular user, connect yourself as the database's administrator and check if everything has worked properly:

mysql -u root -h `hostname` -p
mysql>show databases;
+----------+
| Database |
+----------+
| mysql    |
+----------+
1 row in set (0.00 sec)
mysql> quit
Bye

As always, if you want to keep this server running after your next reboot, you can add its service in the default runlevel:

rc-update add mysql default