gdb -p $(pidof mysqld) -ex "set max_connections=1500" -batchmysql
使用 gdb 臨時調大 參數 max_connections 。sql