Skip to content

Commit

Permalink
更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
atjiu committed Apr 22, 2019
1 parent 73cdcde commit 9c953af
Show file tree
Hide file tree
Showing 336 changed files with 1,660 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/zh-cn/qa.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

## 上传的图片为啥不显示

**说明**

- 后台配置的静态资源`static`文件夹路径要跟程序启动的jar文件在一个目录内且同级请不要配置在其它地方,如果是用nginx映射的静态资源文件夹则没有这限制
- windows下的路径要么是 `\\` 要么是 `/` 请不要用windows自带的一个 `\` 做路径,程序不认,会导致上传失败

首先这是个只会在用IDEA开发启动时出现的问题,原因是IDEA在启动SpringBoot项目的时候会把项目中的 `resources` 加载到内存里,pybbs中的`static`文件夹在resources里

所以项目启动之后,再上传到`static`文件夹里的文件就不会被idea自动加载了,这时候只需要在idea里build一下项目即可,不用重启
Expand Down
2 changes: 2 additions & 0 deletions mysql/mysql_data/auto.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[auto]
server-uuid=386a058f-23ab-11e9-b773-0242ac120002
Binary file added mysql/mysql_data/ca-key.pem
Binary file not shown.
Binary file added mysql/mysql_data/ca.pem
Binary file not shown.
Binary file added mysql/mysql_data/client-cert.pem
Binary file not shown.
Binary file added mysql/mysql_data/client-key.pem
Binary file not shown.
110 changes: 110 additions & 0 deletions mysql/mysql_data/ib_buffer_pool
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
0,387
0,386
0,385
38,4
38,3
38,2
38,1
38,0
37,55
37,54
37,53
37,52
37,51
37,50
37,49
37,48
37,47
37,46
37,45
37,44
37,43
37,42
37,41
37,40
37,39
0,273
0,270
37,38
37,37
37,36
37,35
3,2
3,1
3,3
10,116
10,76
10,208
10,86
10,130
10,2
10,3
11,8
11,18
11,20
11,14
11,2
11,3
9,4
9,6
9,2
9,3
8,12
8,9
8,15
8,6
8,2
8,3
12,2
12,1
12,3
36,4
36,3
36,2
36,1
36,0
35,5
35,4
35,3
35,2
35,1
35,0
34,5
34,4
34,3
34,2
34,1
34,0
33,5
33,4
33,3
33,2
33,1
20,2
33,0
32,4
32,3
20,1
32,2
32,1
20,3
32,0
31,3
31,2
31,1
31,0
30,5
30,4
30,3
30,2
30,1
30,0
29,4
29,3
29,2
29,1
29,0
28,5
28,4
28,3
28,2
Binary file added mysql/mysql_data/ib_logfile0
Binary file not shown.
Binary file added mysql/mysql_data/ib_logfile1
Binary file not shown.
Binary file added mysql/mysql_data/ibdata1
Binary file not shown.
Empty file.
Binary file added mysql/mysql_data/mysql/columns_priv.MYI
Binary file not shown.
Binary file added mysql/mysql_data/mysql/columns_priv.frm
Binary file not shown.
1 change: 1 addition & 0 deletions mysql/mysql_data/mysql/db.MYD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�localhost performance_schema mysql.session �localhost sys mysql.sys 
Binary file added mysql/mysql_data/mysql/db.MYI
Binary file not shown.
Binary file added mysql/mysql_data/mysql/db.frm
Binary file not shown.
2 changes: 2 additions & 0 deletions mysql/mysql_data/mysql/db.opt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default-character-set=latin1
default-collation=latin1_swedish_ci
Binary file added mysql/mysql_data/mysql/engine_cost.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/engine_cost.ibd
Binary file not shown.
Empty file.
Binary file added mysql/mysql_data/mysql/event.MYI
Binary file not shown.
Binary file added mysql/mysql_data/mysql/event.frm
Binary file not shown.
Empty file added mysql/mysql_data/mysql/func.MYD
Empty file.
Binary file added mysql/mysql_data/mysql/func.MYI
Binary file not shown.
Binary file added mysql/mysql_data/mysql/func.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/general_log.CSM
Binary file not shown.
Empty file.
Binary file added mysql/mysql_data/mysql/general_log.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/gtid_executed.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/gtid_executed.ibd
Binary file not shown.
Binary file added mysql/mysql_data/mysql/help_category.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/help_category.ibd
Binary file not shown.
Binary file added mysql/mysql_data/mysql/help_keyword.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/help_keyword.ibd
Binary file not shown.
Binary file added mysql/mysql_data/mysql/help_relation.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/help_relation.ibd
Binary file not shown.
Binary file added mysql/mysql_data/mysql/help_topic.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/help_topic.ibd
Binary file not shown.
Binary file added mysql/mysql_data/mysql/innodb_index_stats.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/innodb_index_stats.ibd
Binary file not shown.
Binary file added mysql/mysql_data/mysql/innodb_table_stats.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/innodb_table_stats.ibd
Binary file not shown.
Empty file.
Binary file added mysql/mysql_data/mysql/ndb_binlog_index.MYI
Binary file not shown.
Binary file added mysql/mysql_data/mysql/ndb_binlog_index.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/plugin.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/plugin.ibd
Binary file not shown.
Binary file added mysql/mysql_data/mysql/proc.MYD
Binary file not shown.
Binary file added mysql/mysql_data/mysql/proc.MYI
Binary file not shown.
Binary file added mysql/mysql_data/mysql/proc.frm
Binary file not shown.
Empty file.
Binary file added mysql/mysql_data/mysql/procs_priv.MYI
Binary file not shown.
Binary file added mysql/mysql_data/mysql/procs_priv.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/proxies_priv.MYD
Binary file not shown.
Binary file added mysql/mysql_data/mysql/proxies_priv.MYI
Binary file not shown.
Binary file added mysql/mysql_data/mysql/proxies_priv.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/server_cost.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/server_cost.ibd
Binary file not shown.
Binary file added mysql/mysql_data/mysql/servers.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/servers.ibd
Binary file not shown.
Binary file added mysql/mysql_data/mysql/slave_master_info.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/slave_master_info.ibd
Binary file not shown.
Binary file added mysql/mysql_data/mysql/slave_relay_log_info.frm
Binary file not shown.
Binary file not shown.
Binary file added mysql/mysql_data/mysql/slave_worker_info.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/slave_worker_info.ibd
Binary file not shown.
Binary file added mysql/mysql_data/mysql/slow_log.CSM
Binary file not shown.
Empty file.
Binary file added mysql/mysql_data/mysql/slow_log.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/tables_priv.MYD
Binary file not shown.
Binary file added mysql/mysql_data/mysql/tables_priv.MYI
Binary file not shown.
Binary file added mysql/mysql_data/mysql/tables_priv.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/time_zone.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/time_zone.ibd
Binary file not shown.
Binary file added mysql/mysql_data/mysql/time_zone_leap_second.frm
Binary file not shown.
Binary file not shown.
Binary file added mysql/mysql_data/mysql/time_zone_name.frm
Binary file not shown.
Binary file added mysql/mysql_data/mysql/time_zone_name.ibd
Binary file not shown.
Binary file added mysql/mysql_data/mysql/time_zone_transition.frm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added mysql/mysql_data/mysql/user.MYD
Binary file not shown.
Binary file added mysql/mysql_data/mysql/user.MYI
Binary file not shown.
Binary file added mysql/mysql_data/mysql/user.frm
Binary file not shown.
Binary file added mysql/mysql_data/performance_schema/accounts.frm
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions mysql/mysql_data/performance_schema/db.opt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default-character-set=utf8
default-collation=utf8_general_ci
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added mysql/mysql_data/performance_schema/hosts.frm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added mysql/mysql_data/performance_schema/threads.frm
Binary file not shown.
Binary file not shown.
Binary file added mysql/mysql_data/performance_schema/users.frm
Binary file not shown.
Binary file not shown.
Binary file added mysql/mysql_data/private_key.pem
Binary file not shown.
Binary file added mysql/mysql_data/public_key.pem
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/admin_user.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/admin_user.ibd
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/code.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/code.ibd
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/collect.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/collect.ibd
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/comment.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/comment.ibd
Binary file not shown.
2 changes: 2 additions & 0 deletions mysql/mysql_data/pybbs/db.opt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default-character-set=latin1
default-collation=latin1_swedish_ci
Binary file added mysql/mysql_data/pybbs/flyway_schema_history.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/flyway_schema_history.ibd
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/notification.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/notification.ibd
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/oauth_user.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/oauth_user.ibd
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/permission.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/permission.ibd
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/role.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/role.ibd
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/role_permission.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/role_permission.ibd
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/system_config.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/system_config.ibd
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/tag.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/tag.ibd
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/topic.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/topic.ibd
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/topic_tag.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/topic_tag.ibd
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/user.frm
Binary file not shown.
Binary file added mysql/mysql_data/pybbs/user.ibd
Binary file not shown.
Binary file added mysql/mysql_data/server-cert.pem
Binary file not shown.
Binary file added mysql/mysql_data/server-key.pem
Binary file not shown.
2 changes: 2 additions & 0 deletions mysql/mysql_data/sys/db.opt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default-character-set=utf8
default-collation=utf8_general_ci
15 changes: 15 additions & 0 deletions mysql/mysql_data/sys/host_summary.frm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TYPE=VIEW
query=select if(isnull(`performance_schema`.`accounts`.`HOST`),\'background\',`performance_schema`.`accounts`.`HOST`) AS `host`,sum(`stmt`.`total`) AS `statements`,`sys`.`format_time`(sum(`stmt`.`total_latency`)) AS `statement_latency`,`sys`.`format_time`(ifnull((sum(`stmt`.`total_latency`) / nullif(sum(`stmt`.`total`),0)),0)) AS `statement_avg_latency`,sum(`stmt`.`full_scans`) AS `table_scans`,sum(`io`.`ios`) AS `file_ios`,`sys`.`format_time`(sum(`io`.`io_latency`)) AS `file_io_latency`,sum(`performance_schema`.`accounts`.`CURRENT_CONNECTIONS`) AS `current_connections`,sum(`performance_schema`.`accounts`.`TOTAL_CONNECTIONS`) AS `total_connections`,count(distinct `performance_schema`.`accounts`.`USER`) AS `unique_users`,`sys`.`format_bytes`(sum(`mem`.`current_allocated`)) AS `current_memory`,`sys`.`format_bytes`(sum(`mem`.`total_allocated`)) AS `total_memory_allocated` from (((`performance_schema`.`accounts` join `sys`.`x$host_summary_by_statement_latency` `stmt` on((`performance_schema`.`accounts`.`HOST` = `stmt`.`host`))) join `sys`.`x$host_summary_by_file_io` `io` on((`performance_schema`.`accounts`.`HOST` = `io`.`host`))) join `sys`.`x$memory_by_host_by_current_bytes` `mem` on((`performance_schema`.`accounts`.`HOST` = `mem`.`host`))) group by if(isnull(`performance_schema`.`accounts`.`HOST`),\'background\',`performance_schema`.`accounts`.`HOST`)
md5=e079676ec756edbb811a11a2d649f6e4
updatable=0
algorithm=1
definer_user=mysql.sys
definer_host=localhost
suid=0
with_check_option=0
timestamp=2019-01-29 09:49:56
create-version=1
source=SELECT IF(accounts.host IS NULL, \'background\', accounts.host) AS host, SUM(stmt.total) AS statements, sys.format_time(SUM(stmt.total_latency)) AS statement_latency, sys.format_time(IFNULL(SUM(stmt.total_latency) / NULLIF(SUM(stmt.total), 0), 0)) AS statement_avg_latency, SUM(stmt.full_scans) AS table_scans, SUM(io.ios) AS file_ios, sys.format_time(SUM(io.io_latency)) AS file_io_latency, SUM(accounts.current_connections) AS current_connections, SUM(accounts.total_connections) AS total_connections, COUNT(DISTINCT user) AS unique_users, sys.format_bytes(SUM(mem.current_allocated)) AS current_memory, sys.format_bytes(SUM(mem.total_allocated)) AS total_memory_allocated FROM performance_schema.accounts JOIN sys.x$host_summary_by_statement_latency AS stmt ON accounts.host = stmt.host JOIN sys.x$host_summary_by_file_io AS io ON accounts.host = io.host JOIN sys.x$memory_by_host_by_current_bytes mem ON accounts.host = mem.host GROUP BY IF(accounts.host IS NULL, \'background\', accounts.host)
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select if(isnull(`performance_schema`.`accounts`.`HOST`),\'background\',`performance_schema`.`accounts`.`HOST`) AS `host`,sum(`stmt`.`total`) AS `statements`,`sys`.`format_time`(sum(`stmt`.`total_latency`)) AS `statement_latency`,`sys`.`format_time`(ifnull((sum(`stmt`.`total_latency`) / nullif(sum(`stmt`.`total`),0)),0)) AS `statement_avg_latency`,sum(`stmt`.`full_scans`) AS `table_scans`,sum(`io`.`ios`) AS `file_ios`,`sys`.`format_time`(sum(`io`.`io_latency`)) AS `file_io_latency`,sum(`performance_schema`.`accounts`.`CURRENT_CONNECTIONS`) AS `current_connections`,sum(`performance_schema`.`accounts`.`TOTAL_CONNECTIONS`) AS `total_connections`,count(distinct `performance_schema`.`accounts`.`USER`) AS `unique_users`,`sys`.`format_bytes`(sum(`mem`.`current_allocated`)) AS `current_memory`,`sys`.`format_bytes`(sum(`mem`.`total_allocated`)) AS `total_memory_allocated` from (((`performance_schema`.`accounts` join `sys`.`x$host_summary_by_statement_latency` `stmt` on((`performance_schema`.`accounts`.`HOST` = `stmt`.`host`))) join `sys`.`x$host_summary_by_file_io` `io` on((`performance_schema`.`accounts`.`HOST` = `io`.`host`))) join `sys`.`x$memory_by_host_by_current_bytes` `mem` on((`performance_schema`.`accounts`.`HOST` = `mem`.`host`))) group by if(isnull(`performance_schema`.`accounts`.`HOST`),\'background\',`performance_schema`.`accounts`.`HOST`)
15 changes: 15 additions & 0 deletions mysql/mysql_data/sys/host_summary_by_file_io.frm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TYPE=VIEW
query=select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR`) AS `ios`,`sys`.`format_time`(sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`)) AS `io_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` like \'wait/io/file/%\') group by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) order by sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) desc
md5=53b0d9b1a70d1f81690a79d9d4d8f59c
updatable=0
algorithm=1
definer_user=mysql.sys
definer_host=localhost
suid=0
with_check_option=0
timestamp=2019-01-29 09:49:56
create-version=1
source=SELECT IF(host IS NULL, \'background\', host) AS host, SUM(count_star) AS ios, sys.format_time(SUM(sum_timer_wait)) AS io_latency FROM performance_schema.events_waits_summary_by_host_by_event_name WHERE event_name LIKE \'wait/io/file/%\' GROUP BY IF(host IS NULL, \'background\', host) ORDER BY SUM(sum_timer_wait) DESC
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR`) AS `ios`,`sys`.`format_time`(sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`)) AS `io_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` like \'wait/io/file/%\') group by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) order by sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) desc
15 changes: 15 additions & 0 deletions mysql/mysql_data/sys/host_summary_by_file_io_type.frm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TYPE=VIEW
query=select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where ((`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` like \'wait/io/file%\') and (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` > 0)) order by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc
md5=58bace9fd830c2b849772ce5d565917e
updatable=1
algorithm=2
definer_user=mysql.sys
definer_host=localhost
suid=0
with_check_option=0
timestamp=2019-01-29 09:49:56
create-version=1
source=SELECT IF(host IS NULL, \'background\', host) AS host, event_name, count_star AS total, sys.format_time(sum_timer_wait) AS total_latency, sys.format_time(max_timer_wait) AS max_latency FROM performance_schema.events_waits_summary_by_host_by_event_name WHERE event_name LIKE \'wait/io/file%\' AND count_star > 0 ORDER BY IF(host IS NULL, \'background\', host), sum_timer_wait DESC
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where ((`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` like \'wait/io/file%\') and (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` > 0)) order by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc
15 changes: 15 additions & 0 deletions mysql/mysql_data/sys/host_summary_by_stages.frm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TYPE=VIEW
query=select if(isnull(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`AVG_TIMER_WAIT`) AS `avg_latency` from `performance_schema`.`events_stages_summary_by_host_by_event_name` where (`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` <> 0) order by if(isnull(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc
md5=b6ea9b98daa223ec9e82b8abb20f25f0
updatable=1
algorithm=2
definer_user=mysql.sys
definer_host=localhost
suid=0
with_check_option=0
timestamp=2019-01-29 09:49:56
create-version=1
source=SELECT IF(host IS NULL, \'background\', host) AS host, event_name, count_star AS total, sys.format_time(sum_timer_wait) AS total_latency, sys.format_time(avg_timer_wait) AS avg_latency FROM performance_schema.events_stages_summary_by_host_by_event_name WHERE sum_timer_wait != 0 ORDER BY IF(host IS NULL, \'background\', host), sum_timer_wait DESC
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select if(isnull(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`AVG_TIMER_WAIT`) AS `avg_latency` from `performance_schema`.`events_stages_summary_by_host_by_event_name` where (`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` <> 0) order by if(isnull(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc
15 changes: 15 additions & 0 deletions mysql/mysql_data/sys/host_summary_by_statement_latency.frm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TYPE=VIEW
query=select if(isnull(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`) AS `host`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`COUNT_STAR`) AS `total`,`sys`.`format_time`(sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`)) AS `total_latency`,`sys`.`format_time`(max(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`MAX_TIMER_WAIT`)) AS `max_latency`,`sys`.`format_time`(sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_LOCK_TIME`)) AS `lock_latency`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_SENT`) AS `rows_sent`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_EXAMINED`) AS `rows_examined`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_AFFECTED`) AS `rows_affected`,(sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_NO_INDEX_USED`) + sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_NO_GOOD_INDEX_USED`)) AS `full_scans` from `performance_schema`.`events_statements_summary_by_host_by_event_name` group by if(isnull(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`) order by sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) desc
md5=61a6f2a6ed0dc94b05f4ed232d72e2b1
updatable=0
algorithm=1
definer_user=mysql.sys
definer_host=localhost
suid=0
with_check_option=0
timestamp=2019-01-29 09:49:56
create-version=1
source=SELECT IF(host IS NULL, \'background\', host) AS host, SUM(count_star) AS total, sys.format_time(SUM(sum_timer_wait)) AS total_latency, sys.format_time(MAX(max_timer_wait)) AS max_latency, sys.format_time(SUM(sum_lock_time)) AS lock_latency, SUM(sum_rows_sent) AS rows_sent, SUM(sum_rows_examined) AS rows_examined, SUM(sum_rows_affected) AS rows_affected, SUM(sum_no_index_used) + SUM(sum_no_good_index_used) AS full_scans FROM performance_schema.events_statements_summary_by_host_by_event_name GROUP BY IF(host IS NULL, \'background\', host) ORDER BY SUM(sum_timer_wait) DESC
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select if(isnull(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`) AS `host`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`COUNT_STAR`) AS `total`,`sys`.`format_time`(sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`)) AS `total_latency`,`sys`.`format_time`(max(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`MAX_TIMER_WAIT`)) AS `max_latency`,`sys`.`format_time`(sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_LOCK_TIME`)) AS `lock_latency`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_SENT`) AS `rows_sent`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_EXAMINED`) AS `rows_examined`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_AFFECTED`) AS `rows_affected`,(sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_NO_INDEX_USED`) + sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_NO_GOOD_INDEX_USED`)) AS `full_scans` from `performance_schema`.`events_statements_summary_by_host_by_event_name` group by if(isnull(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),\'background\',`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`) order by sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) desc
Loading

0 comments on commit 9c953af

Please sign in to comment.