Installation on Fedora
Fedora packages Oracle MySQL as community-mysql. sudo dnf install -y community-mysql-server installs the server; enable and start it with sudo systemctl enable --now mysqld. Note the unit is mysqld, not mysql.
First connection and security
On the first start, MySQL writes a temporary root password to /var/log/mysql/mysqld.log. Retrieve it, then run mysql_secure_installation to set a permanent password and apply secure defaults.
MySQL vs MariaDB on Fedora
Fedora also ships mariadb. The two cannot run on port 3306 at the same time; pick one. This guide uses community-mysql for compatibility with upstream Oracle MySQL.