Hi,
I'm working on mysql (5.6) monitoring.
One of the things which I'm going to implement is summary monitoring of all data and indexes size per database.
On testing obtaining exact data I can form query which is working from root user but is not working from my test monitoring user.
The same is with access to information_schema.SHEMATA which contains list of databases.
So far monitoring user has granted only USAGE privs:
With USAGE priv I can access to all other things but seems on access to information_schema.{TABLES,SCHEMATA} needs to be granted more.
Can someone give a hint what I need to grant to monitoring@localhost account to make above working?
I'm working on mysql (5.6) monitoring.
One of the things which I'm going to implement is summary monitoring of all data and indexes size per database.
On testing obtaining exact data I can form query which is working from root user but is not working from my test monitoring user.
Code:
$ mysql -uroot -sNe "select SUM(DATA_LENGTH) from information_schema.TABLES where TABLE_SCHEMA='test';" 3046817792 $ mysql -umonitoring -sNe "select SUM(DATA_LENGTH) from information_schema.TABLES where TABLE_SCHEMA='test';" ERROR 1045 (28000): Access denied for user 'monitoring'@'localhost' (using password: NO)
So far monitoring user has granted only USAGE privs:
Code:
$ mysql -uroot -sNe "SHOW GRANTS FOR 'monitoring'@'localhost';" GRANT USAGE ON *.* TO 'monitoring'@'localhost' IDENTIFIED BY PASSWORD '<pwd_hash>'
Can someone give a hint what I need to grant to monitoring@localhost account to make above working?
Comment