-
Notifications
You must be signed in to change notification settings - Fork 194
Description
I try to setup mysql snmp but it have this error.
./mysql
PHP Fatal error: Uncaught TypeError: mysqli_num_rows(): Argument #1 ($result) must be of type mysqli_result, bool given in /etc/snmp/mysql:1322
Stack trace:
#0 /etc/snmp/mysql(1322): mysqli_num_rows()
#1 /etc/snmp/mysql(422): run_query()
#2 /etc/snmp/mysql(141): ss_get_mysql_stats()
#3 {main}
thrown in /etc/snmp/mysql on line 1322
========= MySQL version =======
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11850430
Server version: 5.7.30-0ubuntu0.18.04.1 (Ubuntu)
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>