Documente Academic
Documente Profesional
Documente Cultură
Agenda
MySQL Information_schema
Tables in Information_schema
About Us
Karthik.P.R, Senior MySQL DBA,
Bharath Kumar.P, MySQL DBA
Blog : remotemysqldba.blogspot.in
Remotemysqldba.blogspot.in
Remotemysqldba.blogspot.in
Tables In Information_Schema
CHARACTER_SETS
COLLATIONS
COLLATION_CHARACTER_SET_APPLICABILITY
COLUMNS
COLUMN_PRIVILEGES
ENGINES
EVENTS
FILES
GLOBAL_STATUS
GLOBAL_VARIABLES
KEY_COLUMN_USAGE
OPTIMIZER_TRACE
PARAMETERS
PARTITIONS
PLUGINS
PROCESSLIST
PROFILING
REFERENTIAL_CONSTRAINTS
ROUTINES
SCHEMATA
SCHEMA_PRIVILEGES
SESSION_STATUS
SESSION_VARIABLES
STATISTICS
TABLES
TABLESPACES
TABLE_CONSTRAINTS
TABLE_PRIVILEGES
TRIGGERS
USER_PRIVILEGES
VIEWS
INNODB_CMP_RESET
INNODB_TRX
INNODB_CMPMEM_RESET
INNODB_LOCK_WAITS
INNODB_CMPMEM
INNODB_CMP
INNODB_LOCKS
Remotemysqldba.blogspot.in
Tables In Information_Schema
CHARACTER_SETS :
This table provides the information about the available character sets.
Each language functions need different character sets.
COLLATIONS:
The collation table provides the information about the collations for
each character set.
COLLATION_CHARACTER_SET_APPLICABILITY:
This table indicates what character set is applicable for what collation.
COLUMNS :
The columns table provides information about columns in tables.
Remotemysqldba.blogspot.in
Tables In Information_Schema
COLUMN_PRIVILEGES :
This table provides information about column privileges. This
information comes from the mysql.columns_priv table.
ENGINES :
This table provides the output of show engines; statements.
EVENTS :
It shows all the information about the event scheduler.
GLOBAL_STATUS & GLOBAL_VARIABLES:
They give the info about the server variables and status. show global
variables and show global status commands.
Remotemysqldba.blogspot.in
Tables In Information_Schema
KEY_COLUMN_USAGE :
It shows which key columns have constraints. The column that has
foreign key references. It also shows the relation between tables.
PARAMETERS :
It gives information about stored procedure and function parameters. It
Remotemysqldba.blogspot.in
Tables In Information_Schema
PARTITIONS :
It gives information about the partitioned tables and their sub partitions.
PLUGINS :
It show what are the plug-ins installed and their description. It is
equivalent to show plugins
PROCESSLIST:
It gives the list of all the threads running inside the mysql server . It is
equivalent to show full processlist.
It helps to get the queries running beyond certain duration or queries
running by a certain user.
Remotemysqldba.blogspot.in
Tables In Information_Schema
PROFILING :
This table provides statement profiling information. If profiling is
enabled . It is similar to show profile.
Profiling helps us to identify the bottle neck in a query.
REFERENTIAL_CONSTRAINTS :
This table provides information about foreign keys.
ROUTINES :
This table provides information about stored routines in a detailed
manner.
Remotemysqldba.blogspot.in
Tables In Information_Schema
SCHEMATA :
It show what are the databases present in the server.
SCHEMA_PRIVILEGES :
Remotemysqldba.blogspot.in
Tables In Information_Schema
TABLES :
This table provides information about all tables in databases. It has
more and more data about the tables.
1) data size
2) index size
3) number of rows
Remotemysqldba.blogspot.in
Tables In Information_Schema
TABLESPACES:
This table provides information about active tablespaces.
TABLE_CONSTRAINTS :
This table describes which tables have constraints. The information is
about the same as what you get from the show index from
table_name.
Remotemysqldba.blogspot.in
Tables In Information_Schema
TABLE_PRIVILEGES :
This table provides information about table privileges. This information
comes from the mysql.tables_priv table.
TRIGGERS :
This table provides information about triggers.
USER_PRIVILEGES :
The table provides information about global privileges. This
information comes from the mysql.user table.
VIEWS :
The table provides information about views in databases.
Remotemysqldba.blogspot.in
Information_Schema Examples
Query to display tables with more than 1000 rows.
Remotemysqldba.blogspot.in
Remotemysqldba.blogspot.in
An event is anything the server does that takes time and has been
instrumented so that timing information can be collected
Remotemysqldba.blogspot.in
Remotemysqldba.blogspot.in
startup
Server monitoring occurs continuously and unobtrusively with very
little overhead. Activating the Performance Schema does not make the
server unusable.
Execution of server code proceeds normally even if the Performance
Schema fails internally.
Remotemysqldba.blogspot.in
To enable it, start the server with the performance_schema variable enabled in the
my.cnf file.
mysql > show variables like performance_schema;
Remotemysqldba.blogspot.in
THANK YOU
Remotemysqldba.blogspot.in