MySQL Variables slow_launch_time 数据库 参数变量解释及正确配置使用
本站中文解释
slow_launch_time 是 MySQL 中一个常规配置参数变量,用于设置服务器转变到 active 状态的最大延迟时间。
设置 slow_launch_time 的方法是:在 MySQL 的配置文件 my.ini 中添加如下一行:
slow_launch_time=30
该参数的值(30)表示从服务启动到转变为 active 状态所允许的最长时间(以秒为单位),服务启动过程中,如果超过设定时间,MySQL 将会出现错误提示。
官方英文解释
slow_launch_time
| Command-Line Format | --slow-launch-time=# |
|---|---|
| System Variable | slow_launch_time |
| Scope | Global |
| Dynamic | Yes |
| Type | Integer |
| Default Value | 2 |
| Minimum Value | 0 |
| Maximum Value | 31536000 |
| Unit | seconds |
If creating a thread takes longer than this many seconds, the
server increments the
Slow_launch_threads status
variable.