Upgrading to MariaDB 10.3 on the server with BILLmanager can lead to issues in the billing panel. To resolve the issues, change the SQL operating mode:
- Connect to the server with BILLmanager through SSH with the superuser permissions (root per default).
- Add the string sql-mode="" into the section [mysqld] of the MariaDB configuration file/etc/my.cnf.
-
Restart MariaDB:
systemctl restart mariadb
-
Restart BILLmanager:
/usr/local/mgr5/sbin/mgrctl -m billmgr exit
-
Upload a list of time zone:
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql mysql
Example of the MariaDB configuration after modification:
The my.cnf file
[mysqld]
sql-mode=""
local-infile=0
innodb_file_per_table = 1
pid-file = /var/run/mysqld/mysqld.pid
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd
[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid