Hi all,
NethServer Version: 7.6.810
Module: rh-mariadb102 Collection
I installed mariadb-102 from: https://wiki.nethserver.org/doku.php?id=mariadb102
Reference: http://appdev.oit.umn.edu/2015/02/11/scl/
I created the file: /etc/profile.d/activer-rh-mariadb102.sh
cat > /etc/profile.d/activer-rh-mariadb102.sh <<'EOT'
#!/bin/bash
source /opt/rh/rh-mariadb102/enable
if [[ "$X_SCLS" != *rh-mariadb102* ]]; then
src="`scl enable rh-mariadb102 'echo $X_SCLS'`"
pkgs=(${src// / })
uniq=($(printf "%s\n" "${pkgs[@]}" | sort -u));
export X_SCLS="${uniq[@]}"
fi
EOT
# chmod +x /etc/profile.d/activer-rh-mariadb102.sh
Restart the VM
# which mysql
/opt/rh/rh-mariadb102/root/usr/bin/mysql
# ls -ls /opt/rh/rh-mariadb102/root/usr/bin/mysql
4044 -rwxr-xr-x 1 root root 4138208 24 oct. 2017 /opt/rh/rh-mariadb102/root/usr/bin/mysql
The path is correct.
# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 14
Server version: 5.5.60-MariaDB MariaDB Server
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
MariaDB [(none)]> quit;
Bye
#
This is 5.5.60-MariaDB
# mysql102
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 12
Server version: 10.2.8-MariaDB MariaDB Server
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
#
This is 10.2.8-MariaDB
Why it is working correctly on SME-9.2 but not on NethServer-7.6.810?
Thank you,
Michel-André