mysql 系统变量

show variables;
---------------------------------+--------------------------------------------------------+
| Variable_name                   | Value                                                  |
+---------------------------------+--------------------------------------------------------+
| auto_increment_increment        | 1                                                      |
| auto_increment_offset           | 1                                                      |
| automatic_sp_privileges         | ON                                                     |
| back_log                        | 50                                                     |
| basedir                         | D:\PZHCRec\tobeBetter\HTML\javaweb\JSP_QWP\MysqlAPP\   |
| bdb_cache_size                  | 8388600                                                |
| bdb_home                        | D:\PZHCRec\tobeBetter\HTML\javaweb\JSP_QWP\MysqlAPP\   |
| bdb_log_buffer_size             | 131072                                                 |
| bdb_logdir                      |                                                        |
| bdb_max_lock                    | 10000                                                  |
| bdb_shared_data                 | OFF                                                    |
| bdb_tmpdir                      | C:\Users\Administrator\AppData\Local\Temp\             |
| binlog_cache_size               | 98304                                                  |
| bulk_insert_buffer_size         | 8388608                                                |
| character_set_client            | utf8                                                   |
| character_set_connection        | utf8                                                   |
| character_set_database          | utf8                                                   |
| character_set_filesystem        | binary                                                 |
| character_set_results           | utf8                                                   |
| character_set_server            | utf8                                                   |
| character_set_system            | utf8                                                   |
| character_sets_dir              | D:\PZHCRec\tobeBetter\HTML\javaweb\JSP_QWP\MysqlAPP\   |
| collation_connection            | utf8_general_ci                                        |
| collation_database              | utf8_general_ci                                        |
| collation_server                | utf8_general_ci                                        |
| completion_type                 | 0                                                      |
| concurrent_insert               | 1                                                      |
| connect_timeout                 | 5                                                      |
| datadir                         | D:\PZHCRec\tobeBetter\HTML\javaweb\JSP_QWP\MysqlAPP\   |
| date_format                     | %Y-%m-%d                                               |
| datetime_format                 | %Y-%m-%d %H:%i:%s                                      |
| default_week_format             | 0                                                      |
| delay_key_write                 | ON                                                     |
| delayed_insert_limit            | 100                                                    |
| delayed_insert_timeout          | 300                                                    |
| delayed_queue_size              | 1000                                                   |
| div_precision_increment         | 4                                                      |
| engine_condition_pushdown       | OFF                                                    |
| expire_logs_days                | 0                                                      |
| flush                           | OFF                                                    |
| flush_time                      | 1800                                                   |
| ft_boolean_syntax               | + -><()~*:""&|                                         |
| ft_max_word_len                 | 84                                                     |
| ft_min_word_len                 | 4                                                      |
| ft_query_expansion_limit        | 20                                                     |
| ft_stopword_file                | (built-in)                                             |
| group_concat_max_len            | 1024                                                   |
| have_archive                    | YES                                                    |
| have_bdb                        | YES                                                    |
| have_blackhole_engine           | YES                                                    |
| have_compress                   | YES                                                    |
| have_crypt                      | NO                                                     |
| have_csv                        | NO                                                     |
| have_example_engine             | YES                                                    |
| have_federated_engine           | YES                                                    |
| have_geometry                   | YES                                                    |
| have_innodb                     | YES                                                    |
| have_isam                       | NO                                                     |
| have_ndbcluster                 | NO                                                     |
| have_openssl                    | DISABLED                                               |
| have_query_cache                | YES                                                    |
| have_raid                       | NO                                                     |
| have_rtree_keys                 | YES                                                    |
| have_symlink                    | YES                                                    |
| init_connect                    |                                                        |
| init_file                       |                                                        |
| init_slave                      |                                                        |
| innodb_additional_mem_pool_size | 524288                                                 |
| innodb_autoextend_increment     | 8                                                      |
| innodb_buffer_pool_awe_mem_mb   | 0                                                      |
| innodb_buffer_pool_size         | 9437184                                                |
| innodb_checksums                | ON                                                     |
| innodb_commit_concurrency       | 0                                                      |
| innodb_concurrency_tickets      | 500                                                    |
| innodb_data_file_path           | ibdata1:10M:autoextend                                 |
| innodb_data_home_dir            | D:\PZHCRec\tobeBetter\HTML\javaweb\JSP_QWP\MysqlAPP\   |
| innodb_doublewrite              | ON                                                     |
| innodb_fast_shutdown            | 1                                                      |
| innodb_file_io_threads          | 4                                                      |
| innodb_file_per_table           | OFF                                                    |
| innodb_flush_log_at_trx_commit  | 0                                                      |
| innodb_flush_method             |                                                        |
| innodb_force_recovery           | 0                                                      |
| innodb_lock_wait_timeout        | 50                                                     |
| innodb_locks_unsafe_for_binlog  | OFF                                                    |
| innodb_log_arch_dir             | D:\PZHCRec\tobeBetter\HTML\javaweb\JSP_QWP\MysqlAPP\   |
| innodb_log_archive              | OFF                                                    |
| innodb_log_buffer_size          | 1048576                                                |
| innodb_log_file_size            | 5242880                                                |
| innodb_log_files_in_group       | 2                                                      |
| innodb_log_group_home_dir       | D:\PZHCRec\tobeBetter\HTML\javaweb\JSP_QWP\MysqlAPP\   |
| innodb_max_dirty_pages_pct      | 90                                                     |
| innodb_max_purge_lag            | 0                                                      |
| innodb_mirrored_log_groups      | 1                                                      |
| innodb_open_files               | 300                                                    |
| innodb_support_xa               | ON                                                     |
| innodb_sync_spin_loops          | 20                                                     |
| innodb_table_locks              | ON                                                     |
| innodb_thread_concurrency       | 8                                                      |
| innodb_thread_sleep_delay       | 10000                                                  |
| interactive_timeout             | 28800                                                  |
| join_buffer_size                | 131072                                                 |
| key_buffer_size                 | 268435456                                              |
| key_cache_age_threshold         | 300                                                    |
| key_cache_block_size            | 1024                                                   |
| key_cache_division_limit        | 100                                                    |
| language                        | D:\PZHCRec\tobeBetter\HTML\javaweb\JSP_QWP\MysqlAPP\   |
| large_files_support             | ON                                                     |
| large_page_size                 | 0                                                      |
| large_pages                     | OFF                                                    |
| license                         | GPL                                                    |
| local_infile                    | ON                                                     |
| log                             | OFF                                                    |
| log_bin                         | ON                                                     |
| log_bin_trust_function_creators | OFF                                                    |
| log_error                       | .\MyJoy.err                                            |
| log_slave_updates               | OFF                                                    |
| log_slow_queries                | OFF                                                    |
| log_warnings                    | 1                                                      |
| long_query_time                 | 10                                                     |
| low_priority_updates            | OFF                                                    |
| lower_case_file_system          | OFF                                                    |
| lower_case_table_names          | 1                                                      |
| max_allowed_packet              | 1999872                                                |
| max_binlog_cache_size           | 4294967295                                             |
| max_binlog_size                 | 1073741824                                             |
| max_connect_errors              | 10                                                     |
| max_connections                 | 100                                                    |
| max_delayed_threads             | 20                                                     |
| max_error_count                 | 64                                                     |
| max_heap_table_size             | 16777216                                               |
| max_insert_delayed_threads      | 20                                                     |
| max_join_size                   | 4294967295                                             |
| max_length_for_sort_data        | 1024                                                   |
| max_prepared_stmt_count         | 16382                                                  |
| max_relay_log_size              | 0                                                      |
| max_seeks_for_key               | 4294967295                                             |
| max_sort_length                 | 1024                                                   |
| max_sp_recursion_depth          | 0                                                      |
| max_tmp_tables                  | 32                                                     |
| max_user_connections            | 0                                                      |
| max_write_lock_count            | 4294967295                                             |
| multi_range_count               | 256                                                    |
| myisam_data_pointer_size        | 6                                                      |
| myisam_max_sort_file_size       | 2147483647                                             |
| myisam_recover_options          | OFF                                                    |
| myisam_repair_threads           | 1                                                      |
| myisam_sort_buffer_size         | 67108864                                               |
| myisam_stats_method             | nulls_unequal                                          |
| named_pipe                      | OFF                                                    |
| net_buffer_length               | 16384                                                  |
| net_read_timeout                | 30                                                     |
| net_retry_count                 | 10                                                     |
| net_write_timeout               | 60                                                     |
| new                             | OFF                                                    |
| old_passwords                   | OFF                                                    |
| open_files_limit                | 622                                                    |
| optimizer_prune_level           | 1                                                      |
| optimizer_search_depth          | 62                                                     |
| pid_file                        | D:\PZHCRec\tobeBetter\HTML\javaweb\JSP_QWP\MysqlAPP\   |
| prepared_stmt_count             | 0                                                      |
| port                            | 3306                                                   |
| preload_buffer_size             | 32768                                                  |
| protocol_version                | 10                                                     |
| query_alloc_block_size          | 8192                                                   |
| query_cache_limit               | 1048576                                                |
| query_cache_min_res_unit        | 4096                                                   |
| query_cache_size                | 16777216                                               |
| query_cache_type                | ON                                                     |
| query_cache_wlock_invalidate    | OFF                                                    |
| query_prealloc_size             | 8192                                                   |
| range_alloc_block_size          | 2048                                                   |
| read_buffer_size                | 98304                                                  |
| read_only                       | OFF                                                    |
| read_rnd_buffer_size            | 4190208                                                |
| relay_log_purge                 | ON                                                     |
| relay_log_space_limit           | 0                                                      |
| rpl_recovery_rank               | 0                                                      |
| secure_auth                     | OFF                                                    |
| shared_memory                   | OFF                                                    |
| shared_memory_base_name         | MYSQL                                                  |
| server_id                       | 1                                                      |
| skip_external_locking           | ON                                                     |
| skip_networking                 | OFF                                                    |
| skip_show_database              | OFF                                                    |
| slave_compressed_protocol       | OFF                                                    |
| slave_load_tmpdir               | C:\Users\Administrator\AppData\Local\Temp\             |
| slave_net_timeout               | 3600                                                   |
| slave_skip_errors               | OFF                                                    |
| slave_transaction_retries       | 10                                                     |
| slow_launch_time                | 2                                                      |
| sort_buffer_size                | 999992                                                 |
| sql_mode                        |                                                        |
| sql_notes                       | ON                                                     |
| sql_warnings                    | ON                                                     |
| storage_engine                  | MyISAM                                                 |
| sync_binlog                     | 0                                                      |
| sync_frm                        | ON                                                     |
| system_time_zone                |                                                        |
| table_cache                     | 256                                                    |
| table_lock_wait_timeout         | 50                                                     |
| table_type                      | MyISAM                                                 |
| thread_cache_size               | 8                                                      |
| thread_stack                    | 196608                                                 |
| time_format                     | %H:%i:%s                                               |
| time_zone                       | SYSTEM                                                 |
| timed_mutexes                   | OFF                                                    |
| tmp_table_size                  | 33554432                                               |
| tmpdir                          |                                                        |
| transaction_alloc_block_size    | 8192                                                   |
| transaction_prealloc_size       | 4096                                                   |
| tx_isolation                    | REPEATABLE-READ                                        |
| updatable_views_with_limit      | YES                                                    |
| version                         | 5.0.22-community-max-nt-log                            |
| version_bdb                     | Sleepycat Software: Berkeley DB 4.1.24: (May 25, 2006) |
| version_comment                 | MySQL Community Edition - Max (GPL)                    |
| version_compile_machine         | ia32                                                   |
| version_compile_os              | Win32                                                  |
| wait_timeout                    | 28800                                                  |
+---------------------------------+--------------------------------------------------------+

原文地址:https://www.cnblogs.com/humi/p/8604367.html

时间: 2024-10-12 12:18:20

mysql 系统变量的相关文章

MySQL 系统变量(system variables)

MySQL系统变量(system variables)实际上是一些系统参数,用于初始化或设定数据库对系统资源的占用,文件存放位置等等.这些个系统变量可以分为全局以及会话级别层面来修改,有些也可以进行动态修改.本文主要介绍了系统变量的一些概念以及如何设置查看这些系统变量. 1.什么是系统变量   系统变量实际上用于控制数据库的一些行为和方式的参数.比如我们启动数据库的时候设定多大的内存,使用什么样的隔离级别,日志文件的大小,存放位置等等一系列的东东.当然我们数据库系统启动后,有些系统变量(参数)也

mysql系统变量查询

mysql系统变量包括全局变量(global)和会话变量(session),global变量对所有session生效,session变量包括global变量.mysql调优必然会涉及这些系统变量的调整,所以我们首先得会查询系统变量. 1. 查询全局变量:show global variables \G; 2. 查询会话变量:show session variables \G;或show variables: 可以看到,变量表包含variable_name,value两个字段,所以可以通过这两个字

MySQL系统变量

在数据库中,变量分为系统变量(以'@@'开头)以及用户自定义变量.系统变量分为全局系统变量以及会话系统变量,静态变量属于特殊的全局系统变量. 全局系统变量(global)和会话系统变量(session),有时也把全局系统变量称为全局变量,把会话系统变称为local变量或者系统会话变量.Mysql服务成功启动后,如果没有mysql客户机连接mysql服务器,那么mysql服务器内存中的系统变量全部是全局系统变量. 每个mysql客户机成功连接mysql服务器后,都会产生与之对应的会话.会话期间,没

mysql 系统变量和session变量

mysql系统变量包括全局变量(global)和会话变量(session),global变量对所有session生效,session变量包括global变量.mysql调优必然会涉及这些系统变量的调整,所以我们首先得会查询系统变量. 1. 查询全局变量:show global variables \G; 2. 查询会话变量:show session variables \G;或show variables: show session variables where variable_name l

MySQL 系统变量和系统状态参数详解

1.查询缓存相关 mysql> show variables like '%query_cache%'; +------------------------------+----------+ | Variable_name                | Value    | +------------------------------+----------+ | have_query_cache             | YES      | | query_cache_limit  

mysql show variables系统变量详解

mysql系统变量详解 mysqld服务器维护两种变量.全局变量影响服务器的全局操作.会话变量影响具体客户端连接相关操作. 服务器启动时,将所有全局变量初始化为默认值.可以在选项文件或命令行中指定的选项来更改这些默认值.服务器启动后,通过连接服务器并执行SET GLOBAL var_name语句可以更改动态全局变量.要想更改全局变量,必须具有SUPER权限. 服务器还为每个客户端连接维护会话变量.连接时使用相应全局变量的当前值对客户端会话变量进行初始化.客户可以通过SET SESSION var

MySQL的启动选项和系统变量该如何配置?

MySQL的配置信息可以通过两种方式实现,一种是命令行形式,在启动MySQL服务时后边带上相关配置参数,此种方式会在MySQL重启后失效.另外一种是通过写入配置文件,如my.cnf,启动或者重启MySQL服务都会生效,此种方式是永久生效. 启动选项 命令行 在MySQL服务命令启动时,带上配置参数 命令格式: 启动命令 --启动选项1[=值1] --启动选项2[=值2] ... --启动选项n[=值n] 例如: mysqld --default-storage-engine=MyISAM //设

OS 系统下安装MySql 配置MySql环境变量

学习Hive需要,闲话不说 本文的内容: 下载Mysql for Mac 下载Mysql Workbench 安装 Mysql 和 Mysql Workbench 配置Mysql在OS 系统上的环境变量 进入MySql 1.下载Mysql for Mac      下载地址:http://dev.mysql.com/downloads/ 注意,下载末尾是 .dmg格式的文件,这要下错..... 2.下载Mysql Workbench   下载地址:http://dev.mysql.com/dow

MySQL用户和系统变量

--MySQL用户和系统变量-----------------------------2014/05/19用户变量可以先在用户变量中保存值然后在以后引用它:这样可以将值从一个语句传递到另一个语句.用户变量与连接有关.也就是说,一个客户端定义的变量不能被其它客户端看到或使用.当客户端退出时,该客户端连接的所有变量将自动释放.用户变量的形式为@var_name,其中变量名var_name可以由当前字符集的文字数字字符.'.'.'_'和'$'组成. 默认字符集是cp1252 (Latin1).可以用m