namedhao 发表于 2018-10-2 09:42:11

修改MySQL默认最大连接数

--- safe_mysqld.orig Mon Sep 25 09:34:01 2000  +++ safe_mysqld Sun Sep 24 16:56:46 2000
  @@ -109,10 +109,10 @@
  if test "$#" -eq 0
  then
  nohup $ledir/mysqld --basedir=$MY_BASEDIR_VERSION --datadir=$DATADIR \
  - --skip-locking >> $err_log 2>&1
  + --skip-locking -o max_connections=1000 >> $err_log 2>&1
  else
  nohup $ledir/mysqld --basedir=$MY_BASEDIR_VERSION --datadir=$DATADIR \
  - --skip-locking "$@" >> $err_log 2>&1
  + --skip-locking "$@" -o max_connections=1000 >> $err_log 2>&1
  fi
  if test ! -f $pid_file # This is removed if normal shutdown
  then

页: [1]
查看完整版本: 修改MySQL默认最大连接数