Installation on Fedora
MariaDB is the default MySQL-compatible database on Fedora. sudo dnf install -y mariadb-server installs the server; enable and start it with sudo systemctl enable --now mariadb. The data directory is initialized automatically on first start.
First connection and security
After the first start, run sudo mariadb-secure-installation to set the root password, remove anonymous accounts, and drop the test database. Connect with sudo mariadb (unix_socket auth) or mariadb -u root -p once a password is set.
MariaDB vs MySQL on Fedora
Fedora also packages Oracle MySQL as community-mysql. The two cannot run on port 3306 at the same time; pick one. MariaDB is the upstream-default and integrates most smoothly with the distribution.