File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ invoke() {
21
21
fi
22
22
}
23
23
24
- MYSQL_BOOTSTRAP=" /usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --default-storage-engine=myisam"
24
+ MYSQL_BOOTSTRAP=" /usr/sbin/mysqld --bootstrap --user=mysql --disable-log-bin -- skip-grant-tables --default-storage-engine=myisam"
25
25
26
26
test_mysql_access () {
27
27
mysql --no-defaults -u root -h localhost < /dev/null > /dev/null 2>&1
@@ -40,6 +40,7 @@ set_mysql_rootpw() {
40
40
# this avoids us having to call "test" or "[" on $rootpw
41
41
cat << EOF > $tfile
42
42
USE mysql;
43
+ SET sql_log_bin=0;
43
44
UPDATE user SET password=PASSWORD("$rootpw ") WHERE user='root';
44
45
FLUSH PRIVILEGES;
45
46
EOF
144
145
# Debian: beware of the bashisms...
145
146
# Debian: can safely run on upgrades with existing databases
146
147
set +e
147
- /bin/bash /usr/bin/mysql_install_db --rpm --user=mysql 2>&1 | $ERR_LOGGER
148
+ /bin/bash /usr/bin/mysql_install_db --rpm --user=mysql --disable-log-bin 2>&1 | $ERR_LOGGER
148
149
set -e
149
150
150
151
# # On every reconfiguration the maintenance user is recreated.
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ invoke() {
21
21
fi
22
22
}
23
23
24
- MYSQL_BOOTSTRAP=" /usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --default-storage-engine=myisam"
24
+ MYSQL_BOOTSTRAP=" /usr/sbin/mysqld --bootstrap --user=mysql --disable-log-bin -- skip-grant-tables --default-storage-engine=myisam"
25
25
26
26
test_mysql_access () {
27
27
mysql --no-defaults -u root -h localhost < /dev/null > /dev/null 2>&1
@@ -41,6 +41,7 @@ set_mysql_rootpw() {
41
41
# this avoids us having to call "test" or "[" on $rootpw
42
42
cat << EOF > $tfile
43
43
USE mysql;
44
+ SET sql_log_bin=0;
44
45
UPDATE user SET password=PASSWORD("$rootpw ") WHERE user='root';
45
46
FLUSH PRIVILEGES;
46
47
EOF
145
146
# Debian: beware of the bashisms...
146
147
# Debian: can safely run on upgrades with existing databases
147
148
set +e
148
- /bin/bash /usr/bin/mysql_install_db --rpm --user=mysql 2>&1 | $ERR_LOGGER
149
+ /bin/bash /usr/bin/mysql_install_db --rpm --user=mysql --disable-log-bin 2>&1 | $ERR_LOGGER
149
150
set -e
150
151
151
152
# # On every reconfiguration the maintenance user is recreated.
You can’t perform that action at this time.
0 commit comments