I have problem with a MariaDB variable not taking change

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
jamHN
Posts: 3
Joined: Sun Oct 25, 2020 2:35 pm

I have problem with a MariaDB variable not taking change

Post by jamHN »

Hi everyone

I want to tell you that I just installed Cacti version 1.2.14, the installation
I am doing it in Debian 10 Buster, with the Apache server version: Apache / 2.4.38 (Debian),
the MariaDB version I use MariaDB 10.5, when I create the database from
cacti I set it as DEFAULT_CHARACTER_SET_NAME utf8mb4 and DEFAULT_COLLATION_NAME
utf8mb4_unicode_ci, so the whole pre-configuration process is fine, then
that I proceed web to finish the installation via web, in the pre-installation check,
I have some recommendations that I should make in MariaDB before installing Cacti, here
edit the my.cnf file, I add all the variables that I need to modify, but only
there is a variable that is alarmed and it is collation_server, where it says that the
current value is utf8mb4_general_ci and I should change it to utf8mb4_unicode_ci, this change
It is already done in the my.cnf file, MariaDB is restarted, but it does not take the change.

Someone has an idea what is due or what I must modify for the change to apply.
Attachments
Error Cacti 02.png
Error Cacti 02.png (49.03 KiB) Viewed 2252 times
Error Cacti 01.png
Error Cacti 01.png (113.1 KiB) Viewed 2252 times
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: I have problem with a MariaDB variable not taking change

Post by TheWitness »

Check in your /etc/my.cnf.d directory for another file overwriting the value.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
jamHN
Posts: 3
Joined: Sun Oct 25, 2020 2:35 pm

Re: I have problem with a MariaDB variable not taking change

Post by jamHN »

I explain the following based on your recommendation.

here I do the search for other possible files my.cnf where there are a total of three files as I show

root@server:/etc/mysql# find / -name my.cnf

/etc/mysql/my.cnf
/etc/alternatives/my.cnf
/var/lib/dpkg/alternatives/my.cnf


1) In /etc/mysql/my.cnf all the variables that it is recommended to do in the pre installation are added.


2) In this second file /etc/alternatives/my.cnf the variables that are detailed are the same as /etc/mysql/my.cnf, they are assigned automatically when I edit /etc/mysql/my.cnf


3) In this third file /var/lib/dpkg/alternatives/my.cnf we can see the following

auto
/etc/mysql/my.cnf

/etc/mysql/mariadb.cnf
200
/etc/mysql/my.cnf.fallback
100



what I do not understand is that the other variables are applied in MariaDB, even thinking that it is a Bug, I did the test with several versions of MariaDB and I have no problem.
Achea9
Posts: 44
Joined: Mon Sep 07, 2020 3:07 am

Re: I have problem with a MariaDB variable not taking change

Post by Achea9 »

Hi,

I know it is a headeck which I also had before.

Very easy and unexpectable, look

character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

for Mariadb to accept the format.

cheers
jamHN
Posts: 3
Joined: Sun Oct 25, 2020 2:35 pm

Re: I have problem with a MariaDB variable not taking change

Post by jamHN »

Add to the my.cnf file what you recommended, restart mariaDB but I still have the same problem, I'll show you how my my.cnf file looks

:cry: :cry: :cry: :cry:

root@server:/etc/mysql# more my.cnf

[mysqld]

character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: I have problem with a MariaDB variable not taking change

Post by TheWitness »

You are going to have to research your setup. It's not a common setup. MariaDB specifically uses:

/etc/my.cnf.d/server.cnf

For server variables, and that's where you would need to place these settings. So, not sure what bird you've latched onto, but better to stick with RedHat and Debian variants IMHO.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
csh74
Posts: 4
Joined: Wed Dec 02, 2020 8:50 pm

Re: I have problem with a MariaDB variable not taking change

Post by csh74 »

I also ran into this issue after upgrading my MariaDB to a 10.x version... After extensive searching, trial & error, I eventually corrected my issue by adding a new heading within my /etc/my.cnf file.

[mariadb]
collation_server=utf8mb4
character_set_client=utf8mb4_unicode_ci


After a restart of the service, the change was taken.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: I have problem with a MariaDB variable not taking change

Post by TheWitness »

Holy crap! What version?
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
csh74
Posts: 4
Joined: Wed Dec 02, 2020 8:50 pm

Re: I have problem with a MariaDB variable not taking change

Post by csh74 »

Version 1.2.12
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: I have problem with a MariaDB variable not taking change

Post by TheWitness »

MariaDB version.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest