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.rpm
sudo rpm --import /etc/RPM-GPG-KEY-mysql
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';