Mariadb103 available

Hi again Stéphane,

I used the same VM snapshot as before.

Vérification : 3:rh-mariadb103-mariadb-server-10.3.13-4.el7.x86_64                    9/9

The first one is 8/8 and the second one is 9/9.
I do not remember if I did a yum update with the first one. The second one I didn’t do a yum update

Now I am able to connect to the NethServer interface.

But, I still have the error:

# mysql103
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/rh-mariadb103/mariadb.sock' (2)
#

This below, looks like the standard mariadb

# ps aux | grep maria
mysql     1653  0.2  2.3 980800 91968 ?        Sl   13:04   0:02 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/var/lib/mysql/mysql.sock
root      5663  0.0  0.0 112732   976 pts/0    S+   13:25   0:00 grep --color=auto maria
#

This is the status of - MariaDB 10.3:

# systemctl status mysql.service
● rh-mariadb103-mariadb.service - MariaDB 10.3 database server
   Loaded: loaded (/usr/lib/systemd/system/rh-mariadb103-mariadb.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since mer. 2020-04-15 13:16:54 EDT; 25min ago
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
 Main PID: 1420
   CGroup: /system.slice/mysqld.service
           ├─1420 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
           └─1653 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/var/lib/mysql/mysql.sock

avril 15 13:16:54 tchana.micronator-dev.org systemd[1]: Starting MariaDB 10.3 database server...
avril 15 13:16:54 tchana.micronator-dev.org systemd[1]: rh-mariadb103-mariadb.service: control process exited, code=exited status=1
avril 15 13:16:54 tchana.micronator-dev.org systemd[1]: Failed to start MariaDB 10.3 database server.
avril 15 13:16:54 tchana.micronator-dev.org systemd[1]: Unit rh-mariadb103-mariadb.service entered failed state.
avril 15 13:16:54 tchana.micronator-dev.org systemd[1]: rh-mariadb103-mariadb.service failed.
#

In journalctl -xe

Database MariaDB is not initialized, but the directory /var/opt/rh/rh-mariadb103/lib/mysql is not empty,

Just for a test, I deleted some files:

# rm -rf /var/opt/rh/rh-mariadb103/lib/mysql/*

I started Mariadb 10.3

# systemctl restart rh-mariadb103-mariadb.service
#

Now Mariadb 10.3 started.

# systemctl status  rh-mariadb103-mariadb.service  |  grep Active
   Active: active (running) since mer. 2020-04-15 13:55:52 EDT; 2min 55s ago
#

But I can not access it.

# mysql103
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
# 

Michel-André