
zypper -n source-install -d mariadb
zypper -n install libgnutls-devel
zypper -n install jemalloc-devel

wget https://archive.mariadb.org/mariadb-10.5.17/source/mariadb-10.5.17.tar.gz
tar -xzf mariadb-10*
cd mariadb-10.5.17

cmake . -DBUILD_CONFIG=mysql_release -DWITH_JEMALLOC=no
make -j2
make install
#cp debian/additions/my.cnf /etc/my.cnf
cd /usr/local/mysql
scripts/mysql_install_db

cp support-files/mysql.server /etc/init.d/mysql
#ln -s support-files/mysql.server /etc/init.d/mysql

zypper -n install insserv-compat
systemctl enable mysql
systemctl start mysql

# /etc/init.d/mysql start

# ------------------------------------------- 

#/usr/local/mysql/bin/mysql
#ALTER USER 'root'@'localhost' IDENTIFIED BY 'YOUR_NEW_PASSWORD_FOR_ROOT_HERE';
#GRANT ALL PRIVILEGES ON *.* TO 'YOUR_NEW_USER_USERNAME'@'%' IDENTIFIED BY 'YOUR_NEW_USER_PASSWORD';
