Coder Social home page Coder Social logo

Comments (6)

meob avatar meob commented on June 28, 2024 3

Global_status table is contained information_schema and not in performance_schema.
The same problem is in the my2.sql.
Try to use an editor and replace all performance_schema.global_status with information_schema.global_status. Good luck

MySQL 5.7 and 8.0 use performance_schema while older MySQL versions and MariaDB use information_schema. my2.sql code tries to use the right schema for the running version but it is not bullet proof. For Grafana dashboards I have 2 different versions... maybe I'll do the same for the my2 collector. Which fork and version are You using?

from my2collector.

mm86133 avatar mm86133 commented on June 28, 2024

Same issue here.

from my2collector.

meob avatar meob commented on June 28, 2024

Same issue here.
Which MySQL version are You using?
Can You send me the result of version() function and of SHOW VARIABLES command?

from my2collector.

AMASTRO00 avatar AMASTRO00 commented on June 28, 2024

in variable dashboard (MyVar2) replace with :

select concat('MySQL version: ',version(), ' Created at: ', date_format(min(create_time),'%Y-%m-%d %T') ,
' Started at: ', date_format(date_sub(now(), INTERVAL variable_value second),'%Y-%m-%d %T')) info
from information_schema.tables,information_schema.global_status
where variable_name='UPTIME'
group by variable_value

Global_status table is contained information_schema and not in performance_schema.

The same problem is in the my2.sql.
Try to use an editor and replace all performance_schema.global_status with information_schema.global_status. Good luck

from my2collector.

meob avatar meob commented on June 28, 2024

Grafana dashboards for MySQL and MariaDB are different

from my2collector.

QuijoteShin avatar QuijoteShin commented on June 28, 2024

I'm adding extra information to deal with the missing table.

First check where the table actually is. It may be at information_schema or performance_schema.
run this query to know where:
select TABLE_SCHEMA , TABLE_NAME from information_schema.TABLES t where TABLE_NAME ='global_status'

Also you may enable performance schema at my.conf or mysqld.conf
[mysqld]
performance_schema=ON

from my2collector.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.