WEB开发网
开发学院数据库MySQL MySQL InnoDB存储引擎的一些参数 阅读

MySQL InnoDB存储引擎的一些参数

 2008-10-17 11:11:46 来源:WEB开发网   
核心提示: mysql> set global innodb_autoextend_increment=10;Query OK, 0 rows affected (0.01 sec)innodb_status_file定期将show inndb status的结果输出保存到文件中,建议开启以便分

mysql> set global innodb_autoextend_increment=10;

Query OK, 0 rows affected (0.01 sec)

innodb_status_file

定期将show inndb status的结果输出保存到文件中,建议开启以便分析性能。

下面是windows上一个MySQL默认的参数查询结果:

mysql> show variables like 'Innodb%';
+---------------------------------+------------------------+
| Variable_name         | Value         |
+---------------------------------+------------------------+
| innodb_additional_mem_pool_size | 2097152        |
| innodb_autoextend_increment  | 8           |
| innodb_buffer_pool_awe_mem_mb | 0           |
| innodb_buffer_pool_size    | 8388608        |
| innodb_checksums        | ON          |
| innodb_commit_concurrency   | 0           |
| innodb_concurrency_tickets   | 500          |
| innodb_data_file_path     | ibdata1:10M:autoextend |
| innodb_data_home_dir      |            |
| innodb_doublewrite       | ON          |
| innodb_fast_shutdown      | 1           |
| innodb_file_io_threads     | 4           |
| innodb_file_per_table     | OFF          |
| innodb_flush_log_at_trx_commit | 1           |
| innodb_flush_method      |            |
| innodb_force_recovery     | 0           |
| innodb_lock_wait_timeout    | 50          |
| innodb_locks_unsafe_for_binlog | OFF          |
| innodb_log_arch_dir      |            |
| innodb_log_archive       | OFF          |
| innodb_log_buffer_size     | 1048576        |
| innodb_log_file_size      | 10485760       |
| innodb_log_files_in_group   | 2           |
| innodb_log_group_home_dir   | .          |
| innodb_max_dirty_pages_pct   | 90          |
| innodb_max_purge_lag      | 0           |
| innodb_mirrored_log_groups   | 1           |
| innodb_open_files       | 300          |
| innodb_rollback_on_timeout   | OFF          |
| innodb_support_xa       | ON          |
| innodb_sync_spin_loops     | 20          |
| innodb_table_locks       | ON          |
| innodb_thread_concurrency   | 8           |
| innodb_thread_sleep_delay   | 10000         |
+---------------------------------+------------------------+

上一页  1 2 

Tags:MySQL InnoDB 存储

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接