Commit ca7afc3a authored by Fabio Montefuscolo's avatar Fabio Montefuscolo
Browse files

remove flush privileges

parent 3643d876
Pipeline #3152 passed with stage
in 23 seconds
......@@ -19,7 +19,6 @@ bootstrap_sql_root_user () {
GRANT REPLICATION CLIENT ON *.* TO monitor@'%' IDENTIFIED BY 'monitor';
GRANT PROCESS ON *.* TO monitor@localhost IDENTIFIED BY 'monitor';
DROP DATABASE IF EXISTS test ;
FLUSH PRIVILEGES ;
EOSQL
}
......@@ -35,14 +34,12 @@ bootstrap_sql_user () {
bootstrap_sql_grant_user () {
printf "GRANT ALL ON \`%s\`.* TO '%s'@'%%';" "$MYSQL_DATABASE" "$MYSQL_USER"
echo 'FLUSH PRIVILEGES;'
}
bootstrap_database () {
sql_file="${PXC_HOME}/bootstrap.sql"
truncate -s0 $sql_file
# bootstrap_sql_timezone > "$sql_file"
echo 'USE mysql;' > $sql_file
bootstrap_sql_root_user | tee -a "$sql_file"
if [ -n "$MYSQL_DATABASE" ];
......@@ -60,7 +57,8 @@ bootstrap_database () {
fi
fi
echo "## Creating new data directory at '${PXC_DATA}'"
bootstrap_sql_timezone | tee -a "$sql_file"
mysqld \
--defaults-file=/etc/mysql/my.cnf \
--user=mysql \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment