MYSQL錯(cuò)誤日志Can\'t find file: \'./performance_schema/cond_instances.frm\' (errno: 13 - Permission denied)
2015-05-16 12:22:03 3325 [Note] - '0.0.0.0' resolves to '0.0.0.0';
2015-05-16 12:22:03 3325 [Note] Server socket created on IP: '0.0.0.0'.2015-05-16 12:22:03 3325 [ERROR] /usr/sbin/mysqld: Can't find file: './performance_schema/cond_instances.frm'(errno: 13 - Permission denied)2015-05-16 12:22:03 3325 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure2015-05-16 12:22:03 3325 [ERROR] /usr/sbin/mysqld: Can't find file: './performance_schema/events_waits_current.frm' (errno: 13 - Permission denied)2015-05-16 12:22:03 3325 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure2015-05-16 12:22:03 3325 [ERROR] /usr/sbin/mysqld: Can't find file: './performance_schema/events_waits_history.frm' (errno: 13 - Permission denied)2015-05-16 12:22:03 3325 [ERROR] Native table 'performance_schema'.'events_waits_history' has the wrong structure2015-05-16 12:22:03 3325 [ERROR] /usr/sbin/mysqld: Can't find file: './performance_schema/events_waits_history_long.frm' (errno: 13 - Permission denied)2015-05-16 12:22:03 3325 [ERROR] Native table 'performance_schema'.'events_waits_history_long' has the wrong structure2015-05-16 12:22:03 3325 [ERROR] /usr/sbin/mysqld: Can't find file: './performance_schema/events_waits_summary_by_host_by_event_name.frm' (errno: 13 - Permission denied)2015-05-16 12:22:03 3325 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_host_by_event_name' has the wrong structure2015-05-16 12:22:03 3325 [ERROR] /usr/sbin/mysqld: Can't find file: './performance_schema/events_waits_summary_by_instance.frm' (errno: 13 - Permission denied)2015-05-16 12:22:03 3325 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_instance' has the wrong structure2015-05-16 12:22:03 3325 [ERROR] /usr/sbin/mysqld: Can't find file: './performance_schema/events_waits_summary_by_thread_by_event_name.frm' (errno: 13 - Permission denied)2015-05-16 12:22:03 3325 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_thread_by_event_name' has the wrong structure2015-05-16 12:22:03 3325 [ERROR] /usr/sbin/mysqld: Can't find file: './performance_schema/events_waits_summary_by_user_by_event_name.frm' (errno: 13 - Permission denied)2015-05-16 12:22:03 3325 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_user_by_event_name' has the wrong structure2015-05-16 12:22:03 3325 [ERROR] /usr/sbin/mysqld: Can't find file: './performance_schema/events_waits_summary_by_account_by_event_name.frm' (errno: 13 - Permission denied)2015-05-16 12:22:03 3325 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_account_by_event_name' has the wrong structure2015-05-16 12:22:03 3325 [ERROR] /usr/sbin/mysqld: Can't find file: './performance_schema/events_waits_summary_global_by_event_name.frm' (errno: 13 - Permission denied)2015-05-16 12:22:03 3325 [ERROR] Native table 'performance_schema'.'events_waits_summary_global_by_event_name' has the wrong structure2015-05-16 12:22:03 3325 [ERROR] /usr/sbin/mysqld: Can't find file: './performance_schema/file_instances.frm' (errno: 13 - Permission denied)
2015-05-16 12:22:03 3325 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure
根據(jù)以上內(nèi)容,又查了百度,說是權(quán)限問題;
我的MySQL安裝目錄在/var/lib/mysql下;進(jìn)入performance_schema目錄執(zhí)行如下命令:
[root@localhost performance_schema]# chown mysql *
[root@localhost performance_schema]# chgrp mysql *
[root@localhost performance_schema]# chmod ug+rwx *