While it's far from our only database management choice, MySQL is actively maintained by the open source community and can be fronted using familiar GUIs like phpMyAdmin to help simplify maintenance of our data, so remains the popular choice.
Before setting up some basic security, we need mysql-server which, in turn, sets up dependent packages like mysql-client.
Assume Super-User root privileges. At the command line type:-
Install MySQL for Databases
Install MySQL by doing this:-
Lots happens so be patient for a minute or so. Eventually, when prompted to do so, enter an iron-clad password, MySQL's root user's password.
Secure MySQL for Databases
Good idea. Many folks forget to do this which is silly, adding easily-averted risk. Just do this and be happy:-
.. giving your password as prompted, then answering the self-explanatory prompts “no”, “yes”, “yes”, “yes” and “yes”! (You'll be able to see why.)
And, before blowing something up, quit playing root:-
MySQL, sorted. We have data! Could life get any better than this?