Suppress MariaDB 11 deprecation warnings

You are viewing an old version of this question. View the current version here.

Is there a way to prevent deprecation warnings from appearing when executing the 'mysql' and 'mysqldump' commands? There are applications, such as Zabbix, that expect an XML when executing these commands, and this warning breaks the format. We are aware that the templates will need to be updated, but for now we have no other option than to hide these messages.

I mean messages like this: "mariadb mysql: Deprecated program namein a future release, use '/usr/bin/mariadb' instead"

Thx

Answer

Ah,

Lucky the Agent2 version of Zabbix https://www.zabbix.com/documentation/current/en/manual/concepts/agent2 does probing of the database direct via SQL run by the https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/src/go/plugins/mysql.

So it doesn't matter even if the mysql/mariadb/mysql_admin/mariadb-admin clients aren't there.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.