ssl_session_cache_timeout=600 1. 2. 3. 4. 5. 6. 7. 重用SSL 会话, 可以已降低因认证造成的开销,要求运行时缓存中具有会话未超时。 ssl_session_cache_mode = ON 默认300秒调整到600秒,如果没有大量用户连接断开,可以再增加缓存时间。 ssl_session_cache_timeout = 600 重启服务 systemctl restart m...
To reconfigure the SSL session cache at runtime, use this procedure: Set each cache-related system variable that should be changed to its new value. For example, change the cache timeout value from the default (300 seconds) to 600 seconds: ...
| ssl_cert | server-cert.pem | | ssl_cipher | | | ssl_crl | | | ssl_crlpath | | | ssl_fips_mode | OFF | | ssl_key | server-key.pem | | ssl_session_cache_mode | ON | | ssl_session_cache_timeout | 300 | +---+---+ 27 rows in set (0.01 sec) # have_openssl、ha...
server_ssl_session_cache_size: Defines the maximum number of sessions cached. server_ssl_session_cache_timeout: Defines the maximum amount of time, in seconds, a session remains in the cache. If the timeout is reached, and this session is not reused, the session is removed from the cache...
| net_read_timeout | 30 | | net_write_timeout | 60 | | replica_net_timeout | 60 | | rpl_stop_replica_timeout | 31536000 | | rpl_stop_slave_timeout | 31536000 | | slave_net_timeout | 60 | | ssl_session_cache_timeout | 300 | ...
| Ssl_callback_cache_hits | 0 | | Ssl_cipher | | | Ssl_cipher_list | | | Ssl_client_connects | 0 | | Ssl_connect_renegotiates | 0 | | Ssl_ctx_verify_depth | 0 | | Ssl_ctx_verify_mode | 0 | | Ssl_default_timeout | 0 | ...
Ssl_client_connects | 0 | | Ssl_connect_renegotiates | 0 | | Ssl_ctx_verify_depth | 0 | | Ssl_ctx_verify_mode | 0 | | Ssl_default_timeout | 0 | | Ssl_finished_accepts | 0 | | Ssl_finished_connects | 0 | | Ssl_session_cache_hits | 0 | | Ssl_session_cache_misses | 0...
show [session|global] status 可以根据需要加上参数“session”或者“global”来显示 session 级(当前连接)的计结果和 global 级(自数据库上次启动至今)的统计结果。如果不写,默认使用参数是“session”。 下面的命令显示了当前 session 中所有统计参数的值: show status like 'Com___'; show status like 'Innod...
命令行命令就是我们通常连接mysql使用的命令,命令行的命令一般分为两种,首先是双划线的命令,比如使用mysqld --skip-networing就可以禁止客户端连接,这种命令也被称之为长命令,使用命令的时候需要使用--两个短划线进行拼接,另一种是更为常用的命令-h,-p等命令, 这样的命令只需要一个短划线即可(为--host,--port...
所以在上文中设置了global interactive_timeout值后的过程是这样的: 设置global interactive_timeout,重新交互式建立连接,此时session interactive_timeout的值来自设置的global interactive_timeout的值(28805)。此时session wait_timeout的值也来自global wait_timeout的值(28800)。然后在连接的建立过程中session wait_ti...