小编Jun*_*r X的帖子

我删除了 MySQL 的 `performance_schema` 数据库,我该如何创建它?

在修复 ibdata/log 问题时,我不小心丢失了我的performance_schema数据库,我想创建一个新的。

mysql> SHOW VARIABLES LIKE 'perf%';
+---------------------------------------------------+---------+
| Variable_name                                     | Value   |
+---------------------------------------------------+---------+
| performance_schema                                | ON      |
| performance_schema_events_waits_history_long_size | 10000   |
| performance_schema_events_waits_history_size      | 10      |
| performance_schema_max_cond_classes               | 80      |
| performance_schema_max_cond_instances             | 1000    |
| performance_schema_max_file_classes               | 50      |
| performance_schema_max_file_handles               | 32768   |
| performance_schema_max_file_instances             | 10000   |
| performance_schema_max_mutex_classes              | 200     |
| performance_schema_max_mutex_instances            | 1000000 |
| performance_schema_max_rwlock_classes             | 30      |
| performance_schema_max_rwlock_instances           | 1000000 |
| performance_schema_max_table_handles              | …
Run Code Online (Sandbox Code Playgroud)

mysql

11
推荐指数
1
解决办法
1万
查看次数

标签 统计

mysql ×1