Native table 'performance_schema'.'session_variables' has the wrong structure(某表结构错误)

本文介绍了如何解决在MyEclipse中遇到的MySQL表'session_variables'结构错误的问题。通过在my.ini文件中添加特定指令并使用mysql_upgrade工具,最终成功解决了这一错误。

上一篇接:

Table 'performance_schema.session_variables' doesn't exist(某表不存在)的错误

第一:运行之前编写的myeclipse测试,发现第二个Native table 'performance_schema'.'session_variables' has the wrong structure(某表结构错误)的错误;


第二,在my.ini文件中再添加一句话# mysql_upgrade -u root -p --force,然后再运行myeclipse的测试,对!成功啦;



2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_waits_history' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_waits_history_long' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_host_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_instance' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_thread_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_user_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_account_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_waits_summary_global_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'file_summary_by_instance' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'host_cache' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'objects_summary_global_by_type' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'performance_timers' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'rwlock_instances' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'setup_actors' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'setup_consumers' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'setup_instruments' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'setup_objects' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'setup_timers' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'table_io_waits_summary_by_index_usage' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'table_io_waits_summary_by_table' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'table_lock_waits_summary_by_table' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'threads' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_stages_current' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_stages_history' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_stages_history_long' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_stages_summary_by_thread_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_stages_summary_by_account_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_stages_summary_by_user_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_stages_summary_by_host_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_stages_summary_global_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_statements_current' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_statements_history' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_statements_history_long' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_thread_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_account_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_user_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_host_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_statements_summary_global_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_digest' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'users' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'accounts' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'hosts' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'socket_instances' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'socket_summary_by_instance' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'socket_summary_by_event_name' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'session_connect_attrs' has the wrong structure 2025-06-05 23:33:06 27796 [ERROR] Native table 'performance_schema'.'session_account_connect_attrs' has the wrong structure
最新发布
06-07
2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_waits_history' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_waits_history_long' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_host_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_instance' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_thread_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_user_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_account_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_waits_summary_global_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'file_summary_by_instance' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'host_cache' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'objects_summary_global_by_type' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'performance_timers' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'rwlock_instances' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'setup_actors' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'setup_consumers' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'setup_instruments' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'setup_objects' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'setup_timers' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'table_io_waits_summary_by_index_usage' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'table_io_waits_summary_by_table' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'table_lock_waits_summary_by_table' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'threads' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_stages_current' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_stages_history' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_stages_history_long' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_stages_summary_by_thread_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_stages_summary_by_account_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_stages_summary_by_user_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_stages_summary_by_host_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_stages_summary_global_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_statements_current' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_statements_history' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_statements_history_long' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_thread_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_account_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_user_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_host_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_statements_summary_global_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'events_statements_summary_by_digest' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'users' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'accounts' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'hosts' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'socket_instances' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'socket_summary_by_instance' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'socket_summary_by_event_name' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'session_connect_attrs' has the wrong structure 2025-06-04 09:56:15 24636 [ERROR] Native table 'performance_schema'.'session_account_connect_attrs' has the wrong structure
06-05
评论 2
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值