MySQL

36-MySQL8.0的新特性-全局变量的持久化

2022-09-14  本文已影响0人  紫荆秋雪_文
SET GLOBAL MAX_EXECUTION_TIME=2000;
SET PERSIST global max_connections = 1000;
show variables like '%max_connections%'; 
+------------------------+-------+
| Variable_name | Value | 
+------------------------+-------+
| max_connections | 151 | | mysqlx_max_connections | 100 | 
+------------------------+-------+
2 rows in set, 1 warning (0.00 sec)
 set persist max_connections=1000;
show variables like '%max_connections%'; 
+------------------------+-------+
| Variable_name | Value | 
+------------------------+-------+
| max_connections | 1000 | | mysqlx_max_connections | 100 | 
+------------------------+-------+
上一篇 下一篇

猜你喜欢

热点阅读