MySQL是一种关系型数据库管理系统(RDBMS),在Linux系统中,MySQL的库目录结构包含了多个重要的文件夹和文件,这些文件夹和文件用于存储数据库、配置信息、日志文件等。
以下是一个典型的MySQL库目录结构:
/var/lib/mysql/
├── aria_log_control
├── ibdata1
├── ib_logfile0
├── ib_logfile1
├── mysql
│ ├── columns_priv.MYD
│ ├── columns_priv.MYI
│ ├── columns_priv.frm
│ ├── db.MYD
│ ├── db.MYI
│ ├── db.frm
│ ├── event.MYD
│ ├── event.MYI
│ ├── event.frm
│ ├── func.MYD
│ ├── func.MYI
│ ├── func.frm
│ ├── general_log.CSM
│ ├── general_log.MYD
│ ├── general_log.MYI
│ ├── general_log.frm
│ ├── help_category.MYD
│ ├── help_category.MYI
│ ├── help_category.frm
│ ├── help_keyword.MYD
│ ├── help_keyword.MYI
│ ├── help_keyword.frm
│ ├── help_relation.MYD
│ ├── help_relation.MYI
│ ├── help_relation.frm
│ ├── help_topic.MYD
│ ├── help_topic.MYI
│ ├── help_topic.frm
│ ├── innodb_index_stats.ibd
│ ├── innodb_table_stats.ibd
│ ├── plugin.MYD
│ ├── plugin.MYI
│ ├── plugin.frm
│ ├── proc.MYD
│ ├── proc.MYI
│ ├── proc.frm
│ ├── procs_priv.MYD
│ ├── procs_priv.MYI
│ ├── procs_priv.frm
│ ├── servers.MYD
│ ├── servers.MYI
│ ├── servers.frm
│ ├── slow_log.CSM
│ ├── slow_log.MYD
│ ├── slow_log.MYI
│ ├── slow_log.frm
│ ├── tables_priv.MYD
│ ├── tables_priv.MYI
│ ├── tables_priv.frm
│ ├── time_zone.MYD
│ ├── time_zone.LEX
│ ├── time_zone.MYI
│ ├── time_zone.frm
│ ├── time_zone_name.MYD
│ ├── time_zone_name.MYI
│ ├── time_zone_name.frm
│ ├── time_zone_transition.MYD
│ ├── time_zone_transition.MYI
│ ├── time_zone_transition.frm
│ ├── time_zone_transition_type.MYD
│ ├── time_zone_transition_type.MYI
│ ├── time_zone_transition_type.frm
│ ├── user.MYD
│ ├── user.MYI
│ ├── user.frm
├── performance_schema
│ ├── accounts.dbf
│ ├── cond_instances.dbf
│ ├── db.opt
│ ├── events_stages_current.dbf
│ ├── events_stages_history.dbf
│ ├── events_stages_history_long.dbf
│ ├── events_stages_summary_by_account_by_event_name.dbf
│ ├── events_stages_summary_by_host_by_event_name.dbf
│ ├── events_stages_summary_by_thread_by_event_name.dbf
│ ├── events_stages_summary_by_user_by_event_name.dbf
│ ├── events_stages_summary_global_by_event_name.dbf
│ ├── events_statements_current.dbf
│ ├── events_statements_history.dbf
│ ├── events_statements_history_long.dbf
│ ├── events_statements_summary_by_account_by_event_name.dbf
│ ├── events_statements_summary_by_digest.dbf
│ ├── events_statements_summary_by_host_by_event_name.dbf
│ ├── events_statements_summary_by_program.dbf
│ ├── events_statements_summary_by_thread_by_event_name.dbf
│ ├── events_statements_summary_by_user_by_event_name.dbf
│ ├── events_statements_summary_global_by_event_name.dbf
│ ├── file_instances.dbf
│ ├── file_summary_by_event_name.dbf
│ ├── file_summary_by_instance.dbf
│ ├── host_cache.dbf
│ ├── hosts.dbf
│ ├── memory_summary_by_account_by_event_name.dbf
│ ├── memory_summary_by_host_by_event_name.dbf
│ ├── memory_summary_by_thread_by_event_name.dbf
│ ├── memory_summary_by_user_by_event_name.dbf
│ ├── memory_summary_global_by_event_name.dbf
│ ├── metadata_locks.dbf
│ ├── mutex_instances.dbf
│ ├── objects_summary_global_by_type.dbf
│ ├── performance_timers.dbf
│ ├── prepared_statements_instances.dbf
│ ├── progress_by_thread.dbf
│ ├── replication_applier_configuration.dbf
│ ├── replication_applier_status.dbf
│ ├── replication_applier_status_by_coordinator.dbf
│ ├── replication_applier_status_by_worker.dbf
│ ├── replication_connection_configuration.dbf
│ ├── replication_connection_status.dbf
│ ├── replication_group_member_stats.dbf
│ ├── replication_group_members.dbf
│ ├── server_event_logs.dbf
│ ├── setup_actors.dbf
│ ├── setup_consumers.dbf
│ ├── setup_instruments.db
│ ├── setup_objects.dbf
│ ├── setup_timers.dbf
│ ├── socket_instances.dbf
│ ├── socket_summary_by_event_name.dbf
│ ├── socket_summary_by_instance.dbf
│ ├── status_by_account.dbf
│ ├── status_by_host.dbf
│ ├── status_by_thread.dbf
│ ├── status_by_user.dbf
│ ├── table_handles.dbf
│ ├── table_io_waits_summary_by_index_usage.dbf
│ ├── table_io_waits_summary_by_table.dbf
│ ├── table_lock_waits_summary_by_table.dbf
│ ├── threads.dbf
│ ├── user_variables_by_thread.dbf
│ ├── users.dbf
│ ├── variables_by_thread.dbf
├── test
│ ├── db.opt
│ ├── t1.frm
│ ├── t1.MYD
│ ├── t1.MYI
MySQL支持多种存储引擎,常见的包括:
领取专属 10元无门槛券
手把手带您无忧上云