which: no mysql in (/usr/bin:/bin) ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) /opt/mysql/bin/mysql -uroot -Bse "show global status;show variables" Traceback (most recent call last): File "/root/monitor/mysql.py", line 38, in com_select = status["Com_select"] KeyError: 'Com_select'