Menu

How to Install MySQL 9.7 LTS on Fedora 44

Install MySQL 9.7 LTS on Fedora 44 x86_64, verify Oracle’s DNF repository, set the root password, and check the server version.

Posted on By
On this page

Oracle’s MySQL Yum repository provides a MySQL 9.7 LTS server package for Fedora 44. This guide targets x86_64: as of September 2026, the Fedora 44 repository index lists mysql-community-server version 9.7.2-10.fc44. The patch version may change. See the official MySQL Yum repository instructions, repository download page, and live Fedora 44 x86_64 package index for current details.

These steps assume a fresh installation. If MySQL or MariaDB is already installed, back up the data before changing package sources and review the vendor’s replacement or migration instructions. With Oracle’s repository enabled, a system-wide dnf upgrade can replace matching third-party MySQL packages with Oracle’s versions.

Prerequisites

  • Fedora 44 x86_64 with internet access.
  • A user account with sudo privileges.
  • A fresh MySQL installation, or a verified backup of any database you plan to replace.

Add the MySQL Yum Repository

Install the Fedora 44 repository configuration package from Oracle. As of September 2026, the package is mysql97-community-release-fc44-1.noarch.rpm; check the download page if Oracle has published a newer filename:

sudo dnf install https://repo.mysql.com/mysql97-community-release-fc44-1.noarch.rpm

The setup package enables the MySQL 9.7 LTS server and tools repositories by default. Confirm that DNF sees the expected repositories:

dnf repolist enabled | grep mysql

The output should include mysql-9.7-lts-community and mysql-tools-9.7-lts-community. Check the available server package before installing it:

dnf info mysql-community-server

The version should be in the 9.7 series and the repository should be mysql-9.7-lts-community. If no package is listed, refresh DNF metadata and check the enabled repository names:

sudo dnf makecache --refresh
dnf repolist enabled | grep mysql

Install MySQL Server

Install MySQL Community Server:

sudo dnf install mysql-community-server

Start MySQL and enable the service at boot:

sudo systemctl enable --now mysqld
sudo systemctl status mysqld --no-pager

At first startup, MySQL creates a temporary password for the root account and writes it to the error log. Read the password:

sudo grep 'temporary password' /var/log/mysqld.log

Log in with that temporary password and set a new one:

mysql -uroot -p

At the MySQL prompt, replace the example with a unique password that meets the server’s password policy. The default validate_password policy requires at least eight characters, including uppercase and lowercase letters, a digit, and a special character:

ALTER USER 'root'@'localhost' IDENTIFIED BY 'ReplaceWithA_StrongPassword1!';

Verify MySQL

Check the installed client and server versions:

mysql --version
mysql -uroot -p -e 'SELECT VERSION();'

The SQL query returns the server version. Exit the MySQL prompt with exit; if you are still logged in.

Manage the MySQL Service

Use systemctl to manage the server:

sudo systemctl start mysqld
sudo systemctl stop mysqld
sudo systemctl restart mysqld
sudo systemctl status mysqld --no-pager

Conclusion

You installed MySQL 9.7 LTS on Fedora 44 and confirmed that DNF selected Oracle’s 9.7 repository. For MySQL 9.7 LTS on Debian 13, see our Debian 13 installation guide; for Ubuntu 26.04, see our Ubuntu 26.04 installation guide. For the MySQL 8.4 series, see our Fedora installation guide. You can also visit our MySQL tutorials and MySQL Reference.