免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1407 | 回复: 0
打印 上一主题 下一主题

ERROR 1682 (HY000): 'performance_schema'.'session_variables' 错误 [复制链接]

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-10-08 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-05-17 14:43 |只看该作者 |倒序浏览


解决方法:

第一步 Mysql升级:

#mysql_upgrade -u root -p --force

第二步 重启Mysql服务:

#systemctl restart mysqld.service

第三步 测试Storageworks状态:

#show variables like "%stor%";


mysql> show variables like "%stor%";
+----------------------------------------------------------+--------+
| Variable_name                                            | Value  |
+----------------------------------------------------------+--------+
| default_storage_engine                                   | InnoDB |
| default_tmp_storage_engine                               | InnoDB |
| disabled_storage_engines                                 |        |
| internal_tmp_disk_storage_engine                         | InnoDB |
| performance_schema_events_stages_history_long_size       | 10000  |
| performance_schema_events_stages_history_size            | 10     |
| performance_schema_events_statements_history_long_size   | 10000  |
| performance_schema_events_statements_history_size        | 10     |
| performance_schema_events_transactions_history_long_size | 10000  |
| performance_schema_events_transactions_history_size      | 10     |
| performance_schema_events_waits_history_long_size        | 10000  |
| performance_schema_events_waits_history_size             | 10     |
| profiling_history_size                                   | 15     |
| stored_program_cache                                     | 256    |
+----------------------------------------------------------+--------+
14 rows in set (0.00 sec)

mysql> show variables like "have%";
+------------------------+----------+
| Variable_name          | Value    |
+------------------------+----------+
| have_compress          | YES      |
| have_crypt             | YES      |
| have_dynamic_loading   | YES      |
| have_geometry          | YES      |
| have_openssl           | DISABLED |
| have_profiling         | YES      |
| have_query_cache       | YES      |
| have_rtree_keys        | YES      |
| have_ssl               | DISABLED |
| have_statement_timeout | YES      |
| have_symlink           | DISABLED |
+------------------------+----------+
11 rows in set (0.01 sec)

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP