Disabling local-infile in my.cnf
Adding max_user_connections and updating max_connections to +10 of user_connections.
This commit is contained in:
parent
3380bbb738
commit
46108e36f1
@ -35,7 +35,12 @@ for i in "${MEMSIZE[@]}"; do
|
||||
cat ../etc/my.cnf.base | while read line; do
|
||||
if [[ `expr "$line" : ".*{.*}"` != "0" ]]; then
|
||||
oldval=`echo $line | sed -e 's/.*{\(.*\)}.*/\1/'`
|
||||
newval=`echo "$oldval * $multiplier" | bc`
|
||||
prop=`echo $line | sed -e 's/^\(.*\) = {100}/\1/'`
|
||||
if [[ $prop == "max_connections" ]]; then
|
||||
newval=`echo "($oldval * $multiplier) + 10" | bc`
|
||||
else
|
||||
newval=`echo "$oldval * $multiplier" | bc`
|
||||
fi
|
||||
line=`echo $line | sed -e "s/{$oldval}/$newval/"`
|
||||
fi
|
||||
echo $line >> etc/my.cnf.$key
|
||||
|
@ -25,7 +25,11 @@ if [ -e "$MYSQL_CONF_DIR/my.cnf.base" ]; then
|
||||
cat $MYSQL_CONF_DIR/my.cnf.base | while read line; do
|
||||
if [[ `expr "$line" : ".*{.*}"` != "0" ]]; then
|
||||
oldval=`echo $line | sed -e 's/.*{\(.*\)}.*/\1/'`
|
||||
newval=`echo "$oldval * $multiplier" | bc`
|
||||
if [[ $prop == "max_connections" ]]; then
|
||||
newval=`echo "($oldval * $multiplier) + 10" | bc`
|
||||
else
|
||||
newval=`echo "$oldval * $multiplier" | bc`
|
||||
fi
|
||||
line=`echo $line | sed -e "s/{$oldval}/$newval/"`
|
||||
fi
|
||||
echo $line >> $MYSQL_CONF_DIR/my.cnf.default.tmp
|
||||
|
@ -132,6 +132,7 @@ table_definition_cache = {256}
|
||||
open_files_limit = {512}
|
||||
|
||||
# Connections limit
|
||||
max_user_connections = {100}
|
||||
max_connections = {100}
|
||||
|
||||
# Default Storage Engine
|
||||
@ -157,6 +158,8 @@ default_storage_engine = innodb
|
||||
# ssl-cert=/etc/mysql/server-cert.pem
|
||||
# ssl-key=/etc/mysql/server-key.pem
|
||||
|
||||
# Disable LOAD DATA LOCAL INFILE
|
||||
local-infile = 0
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
|
@ -134,7 +134,8 @@ table_definition_cache = 256
|
||||
open_files_limit = 512
|
||||
|
||||
# Connections limit
|
||||
max_connections = 100
|
||||
max_user_connections = 100
|
||||
max_connections = 110
|
||||
|
||||
# Default Storage Engine
|
||||
default_storage_engine = innodb
|
||||
@ -159,6 +160,8 @@ default_storage_engine = innodb
|
||||
# ssl-cert=/etc/mysql/server-cert.pem
|
||||
# ssl-key=/etc/mysql/server-key.pem
|
||||
|
||||
# Disable LOAD DATA LOCAL INFILE
|
||||
local-infile = 0
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
|
@ -10,7 +10,12 @@ for i in "${MEMSIZE[@]}"; do
|
||||
cat ../etc/my.cnf.base | while read line; do
|
||||
if [[ `expr "$line" : ".*{.*}"` != "0" ]]; then
|
||||
oldval=`echo $line | sed -e 's/.*{\(.*\)}.*/\1/'`
|
||||
newval=`echo "$oldval * $multiplier" | bc`
|
||||
prop=`echo $line | sed -e 's/^\(.*\) = {100}/\1/'`
|
||||
if [[ $prop == "max_connections" ]]; then
|
||||
newval=`echo "($oldval * $multiplier) + 10" | bc`
|
||||
else
|
||||
newval=`echo "$oldval * $multiplier" | bc`
|
||||
fi
|
||||
line=`echo $line | sed -e "s/{$oldval}/$newval/"`
|
||||
fi
|
||||
echo $line >> etc/my.cnf.$key
|
||||
|
@ -132,7 +132,8 @@ table_definition_cache = 8192
|
||||
open_files_limit = 16384
|
||||
|
||||
# Connections limit
|
||||
max_connections = 3200
|
||||
max_user_connections = 3200
|
||||
max_connections = 3210
|
||||
|
||||
# Default Storage Engine
|
||||
default_storage_engine = innodb
|
||||
@ -157,6 +158,8 @@ default_storage_engine = innodb
|
||||
# ssl-cert=/etc/mysql/server-cert.pem
|
||||
# ssl-key=/etc/mysql/server-key.pem
|
||||
|
||||
# Disable LOAD DATA LOCAL INFILE
|
||||
local-infile = 0
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
|
@ -132,7 +132,8 @@ table_definition_cache = 512
|
||||
open_files_limit = 1024
|
||||
|
||||
# Connections limit
|
||||
max_connections = 200
|
||||
max_user_connections = 200
|
||||
max_connections = 210
|
||||
|
||||
# Default Storage Engine
|
||||
default_storage_engine = innodb
|
||||
@ -157,6 +158,8 @@ default_storage_engine = innodb
|
||||
# ssl-cert=/etc/mysql/server-cert.pem
|
||||
# ssl-key=/etc/mysql/server-key.pem
|
||||
|
||||
# Disable LOAD DATA LOCAL INFILE
|
||||
local-infile = 0
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
|
@ -132,7 +132,8 @@ table_definition_cache = 1024
|
||||
open_files_limit = 2048
|
||||
|
||||
# Connections limit
|
||||
max_connections = 400
|
||||
max_user_connections = 400
|
||||
max_connections = 410
|
||||
|
||||
# Default Storage Engine
|
||||
default_storage_engine = innodb
|
||||
@ -157,6 +158,8 @@ default_storage_engine = innodb
|
||||
# ssl-cert=/etc/mysql/server-cert.pem
|
||||
# ssl-key=/etc/mysql/server-key.pem
|
||||
|
||||
# Disable LOAD DATA LOCAL INFILE
|
||||
local-infile = 0
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
|
@ -132,7 +132,8 @@ table_definition_cache = 16384
|
||||
open_files_limit = 32768
|
||||
|
||||
# Connections limit
|
||||
max_connections = 6400
|
||||
max_user_connections = 6400
|
||||
max_connections = 6410
|
||||
|
||||
# Default Storage Engine
|
||||
default_storage_engine = innodb
|
||||
@ -157,6 +158,8 @@ default_storage_engine = innodb
|
||||
# ssl-cert=/etc/mysql/server-cert.pem
|
||||
# ssl-key=/etc/mysql/server-key.pem
|
||||
|
||||
# Disable LOAD DATA LOCAL INFILE
|
||||
local-infile = 0
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
|
@ -132,7 +132,8 @@ table_definition_cache = 2048
|
||||
open_files_limit = 4096
|
||||
|
||||
# Connections limit
|
||||
max_connections = 800
|
||||
max_user_connections = 800
|
||||
max_connections = 810
|
||||
|
||||
# Default Storage Engine
|
||||
default_storage_engine = innodb
|
||||
@ -157,6 +158,8 @@ default_storage_engine = innodb
|
||||
# ssl-cert=/etc/mysql/server-cert.pem
|
||||
# ssl-key=/etc/mysql/server-key.pem
|
||||
|
||||
# Disable LOAD DATA LOCAL INFILE
|
||||
local-infile = 0
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
|
@ -132,7 +132,8 @@ table_definition_cache = 256
|
||||
open_files_limit = 512
|
||||
|
||||
# Connections limit
|
||||
max_connections = 100
|
||||
max_user_connections = 100
|
||||
max_connections = 110
|
||||
|
||||
# Default Storage Engine
|
||||
default_storage_engine = innodb
|
||||
@ -157,6 +158,8 @@ default_storage_engine = innodb
|
||||
# ssl-cert=/etc/mysql/server-cert.pem
|
||||
# ssl-key=/etc/mysql/server-key.pem
|
||||
|
||||
# Disable LOAD DATA LOCAL INFILE
|
||||
local-infile = 0
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
|
@ -132,7 +132,8 @@ table_definition_cache = 4096
|
||||
open_files_limit = 8192
|
||||
|
||||
# Connections limit
|
||||
max_connections = 1600
|
||||
max_user_connections = 1600
|
||||
max_connections = 1610
|
||||
|
||||
# Default Storage Engine
|
||||
default_storage_engine = innodb
|
||||
@ -157,6 +158,8 @@ default_storage_engine = innodb
|
||||
# ssl-cert=/etc/mysql/server-cert.pem
|
||||
# ssl-key=/etc/mysql/server-key.pem
|
||||
|
||||
# Disable LOAD DATA LOCAL INFILE
|
||||
local-infile = 0
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
|
Loading…
Reference in New Issue
Block a user