Is this Nethserver module helpful to you?
Please consider donating to the author

Thank you kindly!

2019/03/04 05:32 · HF

Available NS7

rh-mariadb102 - A recent stable release of MariaDB 10.2. This Software Collection gives users of CentOS and RHEL an alternative to MySQL, which is binary compatible with MariaDB in most practical cases and can be replaced with it. This version provides several new features and enhancements like Galera Cluster, a synchronous multi-master cluster. It also introduces table, tablespace and log encryption, and page compression.

Stephane de Labrusse at stephdl@de-labrusse.fr

First you need to install my repository, see how to do it then install the rpm

yum install nethserver-rh-mariadb102

You have no panels. If you need one, please install after nethserver-phpmyadmin or launch 'signal-event nethserver-phpmyadmin-save'

you have several shorters to ease the usage of this scl in your terminal

mysql102
mysqladmin102
mysqlbinlog102
mysqlcheck102
mysql_config_editor102
mysqld_multi102
mysqldump102
mysqlimport102
mysql_plugin102
mysqlshow102
mysqlslap102
  • if you want to launch mariadb102 in your terminal, just do
mysql102
  • If you want to start the software collection after the server reboot, please be aware that you could make issues with softwares not compatible with the software collection version.

Please read the Redhat certified solution.

With that package, you can enable userspace environment automatically by creating a new file under /etc/profile.d with the following content (example for python33 collection): Raw

$ cat /etc/profile.d/enablepython33.sh
#!/bin/bash
source scl_source enable python33

With such file all users will have python 3.3 collection enabled by default in shell.

Backup

backup and restore mariadb102 with the official way (install nethserver-backup-data for this)

Mysql port and socket

  • The port is TCP 3312

restricted to the local network, else change access property to public

config setprop rh-mariadb102-mariadb access public
signal-event nethserver-rh-mariadb102-save
  • the socket is : /var/lib/rh-mariadb102/mariadb.sock

This rpm can be used with the official nethserver-mysql, somehow you just need to use the port 3312 in your web application to adjust the mysql server (rather the official 3306).

127.0.0.1:3312
YourIP:3312

You cannot use localhost:3312, this direct to the mysql socket and you will use the default mysql version.

E-smith database

[root@ns7dev9 ~]# config show rh-mariadb102-mariadb 
rh-mariadb102-mariadb=configuration
    LocalNetworkingOnly=no
    MaxAllowedPacket=16M
    TCPPort=3312
    access=private
    status=enabled

any change needs to launch the event 'nethserver-rh-mariadb102-save'. For example

config setprop rh-mariadb102-mariadb MaxAllowedPacket 32M
signal-event nethserver-rh-mariadb102-save

Log

the log is at:

/var/log/rh-mariadb102/mariadb.log

FIXME

Please raise Issues on github