Mysql app not working

Nothing shows up in the charts.

root@homeserver:/etc/snmp# /etc/snmp/mysql
a0:0
a1:0
a2:0
a3:0
a4:15
a5:286365191
a6:0
a7:3
a8:0
a9:0
aa:8191
ab:7121

I am getting ““ERROR: Access denied for user ‘root’@‘localhost’”” when I run poller with -d, I do have the crets in /etc/snmp/mysql.cnf.

So it works when I call on the mysql scipt by hand but when poller calls the script(using snmp) I get access problem.