MySQL Installing MySQL Community Server version 8 on openSUSE Leap 15

The MySQL repository for SUSE Linux provides a simple and convenient way to install and update MySQL products with the latest software packages using the Zypper package management tool.

Ish Sookun

1 min read min read

To begin the installation, visit MySQL Community Downloads page and download the RPM package for openSUSE Leap 15.

Install the RPM

sudo rpm -Uvh mysql80-community-release-sles12-8.noarch.rpm

Import the MySQL GnuPG Key

sudo rpm --import /etc/RPM-GPG-KEY-mysql

Install MySQL with Zypper

sudo zypper install mysql-community-server

A superuser account 'root'@'localhost' is created. A password for the superuser is set and stored in the error log file. To reveal it, use the following command:

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

Change the root password as soon as possible by logging in with the generated, temporary password and set a custom password for the superuser account:

mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPassword';