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.
sudo rpm -Uvh mysql80-community-release-sles12-8.noarch.rpmsudo rpm --import /etc/RPM-GPG-KEY-mysqlsudo 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';