Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
open-source
docker-pxc
Commits
ca7afc3a
Commit
ca7afc3a
authored
Feb 27, 2018
by
Fabio Montefuscolo
Browse files
remove flush privileges
parent
3643d876
Pipeline
#3152
passed with stage
in 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
entrypoint/bootstrap.sh
entrypoint/bootstrap.sh
+3
-5
No files found.
entrypoint/bootstrap.sh
View file @
ca7afc3a
...
...
@@ -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
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment