This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-15. For the latest, interactive version please visit https://mariadb.com/kb/.

Suppress MariaDB 11 deprecation warnings

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 Answered by Daniel Black in this comment.

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.

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.