File tree Expand file tree Collapse file tree 4 files changed +17
-12
lines changed Expand file tree Collapse file tree 4 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,17 @@ services:
19
19
- ./tests_override.xml:/bitnami/clickhouse/etc/conf.d/override.xml:ro
20
20
21
21
mysql_db :
22
- image : mysql/mysql-server :8.0.32
22
+ image : mysql:8.4.3
23
23
environment :
24
- - MYSQL_DATABASE=admin
25
- - MYSQL_ROOT_HOST=%
26
- - MYSQL_ROOT_PASSWORD=admin
27
- networks :
28
- default :
24
+ MYSQL_DATABASE : admin
25
+ MYSQL_ROOT_HOST : " %"
26
+ MYSQL_ROOT_PASSWORD : admin
29
27
ports :
30
- - 9306:3306
28
+ - " 9306:3306"
31
29
volumes :
32
- - ./test_mysql.cnf:/etc/my.cnf:ro
30
+ - ./test_mysql.cnf:/etc/mysql/my.cnf:ro
31
+ networks :
32
+ - default
33
33
34
34
mariadb_db :
35
35
image : mariadb:11.5.2
Original file line number Diff line number Diff line change @@ -397,7 +397,11 @@ def __connect_to_stream(self):
397
397
# valid, if not, get the current position from master
398
398
if self .log_file is None or self .log_pos is None :
399
399
cur = self ._stream_connection .cursor ()
400
- cur .execute ("SHOW MASTER STATUS" )
400
+ try :
401
+ cur .execute ("SHOW MASTER STATUS" )
402
+ except :
403
+ cur = self ._stream_connection .cursor ()
404
+ cur .execute ("SHOW BINARY LOG STATUS" )
401
405
master_status = cur .fetchone ()
402
406
if master_status is None :
403
407
raise BinLogNotEnabled ()
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ def restart_dead_processes(self):
100
100
def restart_replication_if_required (self ):
101
101
if not self .need_restart_replication :
102
102
return
103
- logger .info ('\n \n \n ====== restarting replication ===== ' )
103
+ logger .info ('restarting replication' )
104
104
for db_name , runner in self .runners .items ():
105
105
logger .info (f'stopping runner { db_name } ' )
106
106
runner .stop ()
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ user = mysql
15
15
# Custom settings
16
16
collation-server = utf8mb4_0900_ai_ci
17
17
character-set-server = utf8mb4
18
- default_authentication_plugin = mysql_native_password
18
+ # default_authentication_plugin = mysql_native_password
19
19
init-connect = ' SET NAMES utf8mb4'
20
- skip-host-cache
20
+ # skip-host-cache
21
21
skip-name-resolve
22
22
information_schema_stats_expiry = 0
23
23
@@ -27,3 +27,4 @@ enforce_gtid_consistency = 1
27
27
binlog_expire_logs_seconds = 864000
28
28
max_binlog_size = 500M
29
29
binlog_format = ROW # Very important if you want to receive write, update and delete row events
30
+ log-bin = mysql-bin
You can’t perform that action at this time.
0 commit comments