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.
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.rpmImport the MySQL GnuPG Key
sudo rpm --import /etc/RPM-GPG-KEY-mysqlInstall MySQL with Zypper
sudo zypper install mysql-community-serverA 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.logChange 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 -pALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPassword';