mysql接続制限


1. c 3 p 0はしばらく実行した後にいつもエラーを投げ出します:“Thread unexpectedly interrupted while performing an acquisition attempt”、logを見て、“Data source rejected establishment of connection、message from server:“Too many connections”を発見して、mysqlがmax_が存在することを証明しますconnectionsは、外部プログラムのアクセスを制限する接続です.
    2. vi/etc/my.ini

#max_connections=100
max_connections=1000

    3. sudo/sbin/service mysqld restart