We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 981df48 commit 117c233Copy full SHA for 117c233
proxy-manager/rootfs/etc/cont-init.d/mysql.sh
@@ -33,7 +33,18 @@ if ! bashio::fs.directory_exists "/data/mysql/mysql"; then
33
done
34
35
# Secure the installation.
36
- printf '\nn\n\n\n\n\n' | /usr/bin/mysql_secure_installation
+ mysql <<-EOSQL
37
+ SET @@SESSION.SQL_LOG_BIN=0;
38
+
39
+ DELETE FROM
40
+ mysql.user
41
+ WHERE
42
+ user NOT IN ('mysql.sys', 'mysqlxsys', 'root', 'mysql')
43
+ OR host NOT IN ('localhost');
44
45
+ DROP DATABASE IF EXISTS test;
46
+ FLUSH PRIVILEGES;
47
+EOSQL
48
49
# Check data integrity and fix corruptions.
50
mysqlcheck \
0 commit comments