Files
download/mysql/init.sh
耗子 758e1c8799
All checks were successful
Generate Checksums / checksums (push) Successful in 46s
feat: 清理提交
2026-01-31 07:03:45 +08:00

352 lines
17 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
if [ $? -ne 0 ]; then
echo "Download public.sh failed, please check the network or try again later."
exit 1
fi
name=${1}
channel=${2}
version=${3}
mysql_path="${setup_path}/server/mysql"
# 配置
mkdir ${mysql_path}/conf
cat >${mysql_path}/conf/my.cnf <<EOF
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
port = 3306
socket = /tmp/mysql.sock
datadir = ${mysql_path}/data
default_storage_engine = InnoDB
skip-external-locking
table_definition_cache = 400
performance_schema = off
event_scheduler = off
key_buffer_size = 8M
max_allowed_packet = 1G
table_open_cache = 32
sort_buffer_size = 256K
read_buffer_size = 256K
join_buffer_size = 256K
read_rnd_buffer_size = 256K
thread_stack = 256K
net_buffer_length = 4K
myisam_sort_buffer_size = 4M
thread_cache_size = 4
query_cache_size = 4M
tmp_table_size = 8M
max_heap_table_size = 8M
explicit_defaults_for_timestamp = 1
#skip-name-resolve
max_connections = 30
max_connect_errors = 100
open_files_limit = 65535
log-bin = mysql-bin
server-id = 1
slow_query_log = 1
slow-query-log-file = ${mysql_path}/mysql-slow.log
long_query_time = 3
innodb_data_home_dir = ${mysql_path}/data
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = ${mysql_path}/data
innodb_buffer_pool_size = 16M
innodb_redo_log_capacity = 5M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
innodb_max_dirty_pages_pct = 90
innodb_read_io_threads = 4
innodb_write_io_threads = 4
[mysqldump]
quick
max_allowed_packet = 2G
[mysqlhotcopy]
interactive-timeout
EOF
# 根据CPU核心数确定写入线程数核心数的一半
half_cores=$((CORES / 2))
[ "$half_cores" -lt 1 ] && half_cores=1
sed -i 's/innodb_write_io_threads = 4/innodb_write_io_threads = '${half_cores}'/g' ${mysql_path}/conf/my.cnf
sed -i 's/innodb_read_io_threads = 4/innodb_read_io_threads = '${half_cores}'/g' ${mysql_path}/conf/my.cnf
# MySQL 8+ 移除 query_cache
if [[ ${channel} == "80" ]] || [[ ${channel} == "84" ]]; then
sed -i '/query_cache_size/d' ${mysql_path}/conf/my.cnf
fi
# MariaDB 和 MySQL 5.7 没有 innodb_redo_log_capacity
if [[ ${name} == "mariadb" ]] || [[ ${channel} == "57" ]]; then
sed -i '/innodb_redo_log_capacity/d' ${mysql_path}/conf/my.cnf
fi
# MariaDB 移除 performance_schema
if [[ ${name} == "mariadb" ]]; then
sed -i '/performance_schema/d' ${mysql_path}/conf/my.cnf
fi
# 根据内存大小调参
if [[ ${MEM} -lt 1500 ]]; then
sed -i "s#^key_buffer_size.*#key_buffer_size = 4M#" ${mysql_path}/conf/my.cnf
sed -i "s#^table_open_cache.*#table_open_cache = 32#" ${mysql_path}/conf/my.cnf
sed -i "s#^sort_buffer_size.*#sort_buffer_size = 64K#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_buffer_size.*#read_buffer_size = 64K#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_rnd_buffer_size.*#read_rnd_buffer_size = 128K#" ${mysql_path}/conf/my.cnf
sed -i "s#^join_buffer_size.*#join_buffer_size = 128K#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_stack.*#thread_stack = 192K#" ${mysql_path}/conf/my.cnf
sed -i "s#^myisam_sort_buffer_size.*#myisam_sort_buffer_size = 4M#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_cache_size.*#thread_cache_size = 0#" ${mysql_path}/conf/my.cnf
sed -i "s#^query_cache_size.*#query_cache_size = 0#" ${mysql_path}/conf/my.cnf
sed -i "s#^tmp_table_size.*#tmp_table_size = 8M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_heap_table_size.*#max_heap_table_size = 8M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_buffer_pool_size.*#innodb_buffer_pool_size = 32M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_redo_log_capacity.*#innodb_redo_log_capacity = 32M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_log_buffer_size.*#innodb_log_buffer_size = 4M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_connections.*#max_connections = 30#" ${mysql_path}/conf/my.cnf
elif [[ ${MEM} -ge 1500 && ${MEM} -lt 1900 ]]; then
sed -i "s#^key_buffer_size.*#key_buffer_size = 8M#" ${mysql_path}/conf/my.cnf
sed -i "s#^table_open_cache.*#table_open_cache = 64#" ${mysql_path}/conf/my.cnf
sed -i "s#^sort_buffer_size.*#sort_buffer_size = 256K#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_buffer_size.*#read_buffer_size = 256K#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_rnd_buffer_size.*#read_rnd_buffer_size = 256K#" ${mysql_path}/conf/my.cnf
sed -i "s#^join_buffer_size.*#join_buffer_size = 128K#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_stack.*#thread_stack = 192K#" ${mysql_path}/conf/my.cnf
sed -i "s#^myisam_sort_buffer_size.*#myisam_sort_buffer_size = 8M#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_cache_size.*#thread_cache_size = 16#" ${mysql_path}/conf/my.cnf
sed -i "s#^query_cache_size.*#query_cache_size = 16M#" ${mysql_path}/conf/my.cnf
sed -i "s#^tmp_table_size.*#tmp_table_size = 16M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_heap_table_size.*#max_heap_table_size = 16M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_buffer_pool_size.*#innodb_buffer_pool_size = 64M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_redo_log_capacity.*#innodb_redo_log_capacity = 64M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_log_buffer_size.*#innodb_log_buffer_size = 16M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_connections.*#max_connections = 50#" ${mysql_path}/conf/my.cnf
elif [[ ${MEM} -ge 1900 && ${MEM} -lt 3900 ]]; then
sed -i "s#^key_buffer_size.*#key_buffer_size = 16M#" ${mysql_path}/conf/my.cnf
sed -i "s#^table_open_cache.*#table_open_cache = 256#" ${mysql_path}/conf/my.cnf
sed -i "s#^sort_buffer_size.*#sort_buffer_size = 512K#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_buffer_size.*#read_buffer_size = 512K#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_rnd_buffer_size.*#read_rnd_buffer_size = 512K#" ${mysql_path}/conf/my.cnf
sed -i "s#^join_buffer_size.*#join_buffer_size = 256K#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_stack.*#thread_stack = 256K#" ${mysql_path}/conf/my.cnf
sed -i "s#^myisam_sort_buffer_size.*#myisam_sort_buffer_size = 16M#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_cache_size.*#thread_cache_size = 32#" ${mysql_path}/conf/my.cnf
sed -i "s#^query_cache_size.*#query_cache_size = 32M#" ${mysql_path}/conf/my.cnf
sed -i "s#^tmp_table_size.*#tmp_table_size = 32M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_heap_table_size.*#max_heap_table_size = 32M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_buffer_pool_size.*#innodb_buffer_pool_size = 128M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_redo_log_capacity.*#innodb_redo_log_capacity = 128M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_log_buffer_size.*#innodb_log_buffer_size = 32M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_connections.*#max_connections = 100#" ${mysql_path}/conf/my.cnf
elif [[ ${MEM} -ge 3900 && ${MEM} -lt 7900 ]]; then
sed -i "s#^key_buffer_size.*#key_buffer_size = 32M#" ${mysql_path}/conf/my.cnf
sed -i "s#^table_open_cache.*#table_open_cache = 512#" ${mysql_path}/conf/my.cnf
sed -i "s#^sort_buffer_size.*#sort_buffer_size = 1M#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_buffer_size.*#read_buffer_size = 1M#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_rnd_buffer_size.*#read_rnd_buffer_size = 1M#" ${mysql_path}/conf/my.cnf
sed -i "s#^join_buffer_size.*#join_buffer_size = 512K#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_stack.*#thread_stack = 256K#" ${mysql_path}/conf/my.cnf
sed -i "s#^myisam_sort_buffer_size.*#myisam_sort_buffer_size = 32M#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_cache_size.*#thread_cache_size = 64#" ${mysql_path}/conf/my.cnf
sed -i "s#^query_cache_size.*#query_cache_size = 64M#" ${mysql_path}/conf/my.cnf
sed -i "s#^tmp_table_size.*#tmp_table_size = 64M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_heap_table_size.*#max_heap_table_size = 64M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_buffer_pool_size.*#innodb_buffer_pool_size = 256M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_redo_log_capacity.*#innodb_redo_log_capacity = 256M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_log_buffer_size.*#innodb_log_buffer_size = 64M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_connections.*#max_connections = 200#" ${mysql_path}/conf/my.cnf
elif [[ ${MEM} -ge 7900 && ${MEM} -lt 15900 ]]; then
sed -i "s#^key_buffer_size.*#key_buffer_size = 64M#" ${mysql_path}/conf/my.cnf
sed -i "s#^table_open_cache.*#table_open_cache = 1024#" ${mysql_path}/conf/my.cnf
sed -i "s#^sort_buffer_size.*#sort_buffer_size = 2M#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_buffer_size.*#read_buffer_size = 2M#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_rnd_buffer_size.*#read_rnd_buffer_size = 2M#" ${mysql_path}/conf/my.cnf
sed -i "s#^join_buffer_size.*#join_buffer_size = 1M#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_stack.*#thread_stack = 384K#" ${mysql_path}/conf/my.cnf
sed -i "s#^myisam_sort_buffer_size.*#myisam_sort_buffer_size = 64M#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_cache_size.*#thread_cache_size = 128#" ${mysql_path}/conf/my.cnf
sed -i "s#^query_cache_size.*#query_cache_size = 128M#" ${mysql_path}/conf/my.cnf
sed -i "s#^tmp_table_size.*#tmp_table_size = 128M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_heap_table_size.*#max_heap_table_size = 128M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_buffer_pool_size.*#innodb_buffer_pool_size = 512M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_redo_log_capacity.*#innodb_redo_log_capacity = 512M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_log_buffer_size.*#innodb_log_buffer_size = 64M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_connections.*#max_connections = 400#" ${mysql_path}/conf/my.cnf
elif [[ ${MEM} -ge 15900 && ${MEM} -lt 31900 ]]; then
sed -i "s#^key_buffer_size.*#key_buffer_size = 128M#" ${mysql_path}/conf/my.cnf
sed -i "s#^table_open_cache.*#table_open_cache = 2048#" ${mysql_path}/conf/my.cnf
sed -i "s#^sort_buffer_size.*#sort_buffer_size = 4M#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_buffer_size.*#read_buffer_size = 4M#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_rnd_buffer_size.*#read_rnd_buffer_size = 4M#" ${mysql_path}/conf/my.cnf
sed -i "s#^join_buffer_size.*#join_buffer_size = 2M#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_stack.*#thread_stack = 512K#" ${mysql_path}/conf/my.cnf
sed -i "s#^myisam_sort_buffer_size.*#myisam_sort_buffer_size = 128M#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_cache_size.*#thread_cache_size = 256#" ${mysql_path}/conf/my.cnf
sed -i "s#^query_cache_size.*#query_cache_size = 256M#" ${mysql_path}/conf/my.cnf
sed -i "s#^tmp_table_size.*#tmp_table_size = 256M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_heap_table_size.*#max_heap_table_size = 256M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_buffer_pool_size.*#innodb_buffer_pool_size = 1G#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_redo_log_capacity.*#innodb_redo_log_capacity = 1G#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_log_buffer_size.*#innodb_log_buffer_size = 64M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_connections.*#max_connections = 600#" ${mysql_path}/conf/my.cnf
sed -i '/performance_schema/d' ${mysql_path}/conf/my.cnf
sed -i '/event_scheduler/d' ${mysql_path}/conf/my.cnf
elif [[ ${MEM} -ge 31900 ]]; then
sed -i "s#^key_buffer_size.*#key_buffer_size = 256M#" ${mysql_path}/conf/my.cnf
sed -i "s#^table_open_cache.*#table_open_cache = 4096#" ${mysql_path}/conf/my.cnf
sed -i "s#^sort_buffer_size.*#sort_buffer_size = 4M#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_buffer_size.*#read_buffer_size = 4M#" ${mysql_path}/conf/my.cnf
sed -i "s#^read_rnd_buffer_size.*#read_rnd_buffer_size = 4M#" ${mysql_path}/conf/my.cnf
sed -i "s#^join_buffer_size.*#join_buffer_size = 2M#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_stack.*#thread_stack = 512K#" ${mysql_path}/conf/my.cnf
sed -i "s#^myisam_sort_buffer_size.*#myisam_sort_buffer_size = 256M#" ${mysql_path}/conf/my.cnf
sed -i "s#^thread_cache_size.*#thread_cache_size = 512#" ${mysql_path}/conf/my.cnf
sed -i "s#^query_cache_size.*#query_cache_size = 512M#" ${mysql_path}/conf/my.cnf
sed -i "s#^tmp_table_size.*#tmp_table_size = 512M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_heap_table_size.*#max_heap_table_size = 512M#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_buffer_pool_size.*#innodb_buffer_pool_size = 2G#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_redo_log_capacity.*#innodb_redo_log_capacity = 1G#" ${mysql_path}/conf/my.cnf
sed -i "s#^innodb_log_buffer_size.*#innodb_log_buffer_size = 64M#" ${mysql_path}/conf/my.cnf
sed -i "s#^max_connections.*#max_connections = 800#" ${mysql_path}/conf/my.cnf
sed -i '/performance_schema/d' ${mysql_path}/conf/my.cnf
sed -i '/event_scheduler/d' ${mysql_path}/conf/my.cnf
fi
# 初始化
cd ${mysql_path}
rm -rf ${mysql_path}/src
rm -rf ${mysql_path}/data
mkdir -p ${mysql_path}/data
chown -R mysql:mysql ${mysql_path}
chmod -R 700 ${mysql_path}
if [[ ${name} == "mariadb" ]]; then
${mysql_path}/scripts/mariadb-install-db --defaults-file=${mysql_path}/conf/my.cnf --user=mysql --basedir=${mysql_path} --datadir=${mysql_path}/data --auth-root-authentication-method=normal --skip-test-db --skip-name-resolve
else
${mysql_path}/bin/mysqld --defaults-file=${mysql_path}/conf/my.cnf --initialize-insecure --user=mysql --basedir=${mysql_path} --datadir=${mysql_path}/data
fi
# 软链接
ln -sf ${mysql_path}/bin/* /usr/local/bin/
# 写入 systemd 配置
if [ -f "${mysql_path}/usr/lib/systemd/system/mysqld.service" ]; then
\cp -f ${mysql_path}/usr/lib/systemd/system/mysqld.service /etc/systemd/system/mysqld.service
sed -i 's/^LimitNOFILE=.*$/LimitNOFILE=32768/g' /etc/systemd/system/mysqld.service
elif [ -f "${mysql_path}/support-files/systemd/mysqld.service" ]; then
\cp -f ${mysql_path}/support-files/systemd/mysqld.service /etc/systemd/system/mysqld.service
else
cat >/etc/systemd/system/mysqld.service <<EOF
[Unit]
Description=MySQL Server
Documentation=http://dev.mysql.com/doc/refman/en/using-systemd.html
After=network-online.target
Wants=network-online.target
After=syslog.target
After=local-fs.target remote-fs.target
Requires=local-fs.target remote-fs.target
[Install]
WantedBy=multi-user.target
[Service]
User=mysql
Group=mysql
Type=forking
PIDFile=${mysql_path}/mysqld.pid
# Disable service start and stop timeout logic of systemd for mysqld service.
TimeoutSec=0
# Execute pre and post scripts as root
PermissionsStartOnly=true
# Start main service
ExecStart=${mysql_path}/bin/mysqld --daemonize --pid-file=${mysql_path}/mysqld.pid \$MYSQLD_OPTS
# Use this to switch malloc implementation
EnvironmentFile=-/etc/sysconfig/mysql
# Sets open_files_limit
LimitNOFILE = 32768
Restart=on-failure
RestartPreventExitStatus=1
# Set enviroment variable MYSQLD_PARENT_PID. This is required for restart.
Environment=MYSQLD_PARENT_PID=1
PrivateTmp=false
EOF
fi
chmod 644 /etc/systemd/system/mysqld.service
systemctl daemon-reload
systemctl enable --now mysqld
if [ "$?" != "0" ]; then
error "Failed to start"
fi
# 等待 MySQL 启动
for i in {1..60}; do
if mysqladmin ping &>/dev/null; then
echo "MySQL service has started"
break
fi
echo "Waiting for MySQL to start..."
sleep 1
done
if ! mysqladmin ping &>/dev/null; then
error "MySQL startup timeout"
fi
root_password=$(cat /dev/urandom | head -n 16 | sha256sum | head -c 16)
${mysql_path}/bin/mysqladmin -u root password ${root_password}
if [ "$?" != "0" ]; then
error "Failed to initialize password"
fi
export MYSQL_PWD=${root_password}
${mysql_path}/bin/mysql -uroot -e "DROP DATABASE test;"
${mysql_path}/bin/mysql -uroot -e "DELETE FROM mysql.user WHERE user='';"
${mysql_path}/bin/mysql -uroot -e "FLUSH PRIVILEGES;"
# 启用 RocksDB
if [[ ${MEM} -ge 7900 && -f "${mysql_path}/lib/plugin/ha_rocksdb.so" ]]; then
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_CFSTATS SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_DBSTATS SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_PERF_CONTEXT SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_PERF_CONTEXT_GLOBAL SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_CF_OPTIONS SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_GLOBAL_INFO SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_COMPACTION_HISTORY SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_COMPACTION_STATS SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_ACTIVE_COMPACTION_STATS SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_DDL SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_INDEX_FILE_MAP SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_LOCKS SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_TRX SONAME 'ha_rocksdb.so';"
${mysql_path}/bin/mysql -uroot -e "INSTALL PLUGIN ROCKSDB_DEADLOCK SONAME 'ha_rocksdb.so';"
fi
unset MYSQL_PWD
acepanel app write ${name} ${channel} ${version}
acepanel setting write mysql_root_password ${root_password}
acepanel database add-server --type=mysql --name=local_mysql --host=127.0.0.1 --port=3306 --username=root --password=${root_password}