June 18, 2013

Post: Implementing SchemaSpy in your MySQL environment

schema name information. Viewing SchemaSpy output A completed Relationships view of these three tables should look like this: Final Thoughts While I find

Post: Quickly finding unused indexes (and estimating their size)

of it into our schema with one command: mysql> create table index_analysis.used_indexes select * from information_schema.index

Post: MySQL 5.6 vs MySQL 5.5 and the Star Schema Benchmark

indexes have been pushed out of the buffer pool. mysql> select * from information_schema.innodb_buffer_pool_stats\G *************************** 1. row *************************** POOL_ID: 0 POOL_SIZE

Post: Researching your MySQL table sizes

…few more aspects of data sizes so here it goes: Find total number of tables, rows, total data in index size for given MySQL Instance SELECT count… total_size, round(sum(index_length)/sum(data_length),2) idxfrac FROM information_schema.TABLES GROUP BY table_schema ORDER BY sum(data_length+index_length…

Post: Find unused indexes

… accomplish our task of finding unused indexes we’re going to use INFORMATION_SCHEMA.INDEX_STATISTICS but first we should enable User Statistics: mysql> SET GLOBAL userstat… in account that depending on the size of the log the server would need lot of process time and cpu power so I…

Post: Finding out largest tables on MySQL Server

size, ROUND(index_length / data_length, 2) idxfrac FROM information_schema.TABLES ORDER BY data_length + index_length DESC LIMIT 10; +————————————-+——–+——–+——–+————+———+ | concat(table_schema

Post: Troubleshooting MySQL Memory Usage

size variable which allows you to limit size ofinformation_schema to see how much memory is being used by current MEMORY tables: mysql> select sum(data_length+index_length) from information_schema

Post: How Percona does a MySQL Performance Audit

find the biggest tables and so forth. If the server is heavily loaded or has a lot of data, touching the INFORMATION_SCHEMAmysql.* tables, running mk-duplicate-key-checker to find redundant indexes

Post: How to recover deleted rows from an InnoDB Tablespace

of them: A) INNODB_SYS_INDEXES Percona Server has some extra tables in INFORMATION_SCHEMA that can help us to find the different indexes and types. mysql (information_schema…table_monitor. C) Check the size on disk of every indes This is very dependent of the table schema, but normally the primary …

Post: InnoDB Full-text Search in MySQL 5.6 (part 1)

… than the size of my DIR data. So, with all of that out of the way…mysql> set global innodb_ft_aux_table=’test/dir_test_innodb’; mysql> set global innodb_optimize_fulltext_only=1; mysql> select * from information_schemaof the other I_S tables, I do find that the number of rows in I_S.innodb_ft_index