@@ -30,8 +30,8 @@ echo "CDC state reset"
3030"""
3131
3232[tasks .demo ]
33- description = " Start MySQL , reset CDC state, and run"
34- depends = [" mysql -setup" , " reset" , " run" ]
33+ description = " Start MariaDB , reset CDC state, and run"
34+ depends = [" mariadb -setup" , " reset" , " build " , " run" ]
3535
3636[tasks .deploy-sink ]
3737description = " Deploy sink JAR to Debezium Server lib/"
@@ -48,8 +48,8 @@ cp target/debezium-xtdb-1.0.0-SNAPSHOT.jar "$DEBEZIUM_DIR/lib/"
4848echo "Deployed to $DEBEZIUM_DIR/lib/"
4949"""
5050
51- [tasks .mysql -writer ]
52- description = " Continuously write to MySQL (generates CDC events)"
51+ [tasks .mariadb -writer ]
52+ description = " Continuously write to MariaDB (generates CDC events)"
5353run = " scripts/mysql-writer.sh"
5454
5555[tasks .xtdb-poller ]
@@ -65,7 +65,7 @@ rm -rf data/*
6565echo "Cleaned"
6666"""
6767
68- [tasks .mysql -install ]
68+ [tasks .mariadb -install ]
6969description = " Install MariaDB via system package manager"
7070run = """
7171#!/bin/bash
@@ -79,9 +79,9 @@ sudo pacman -S --noconfirm mariadb
7979echo "MariaDB installed"
8080"""
8181
82- [tasks .mysql -init ]
83- description = " Initialize MySQL data directory (one-time)"
84- depends = [" mysql -install" ]
82+ [tasks .mariadb -init ]
83+ description = " Initialize MariaDB data directory (one-time)"
84+ depends = [" mariadb -install" ]
8585run = """
8686#!/bin/bash
8787set -e
@@ -95,9 +95,9 @@ mariadb-install-db --datadir="$PWD/$MYSQL_DATA_DIR" --auth-root-authentication-m
9595echo "MariaDB initialized (root has no password)"
9696"""
9797
98- [tasks .mysql -start ]
99- description = " Start MySQL server with binlog enabled"
100- depends = [" mysql -init" ]
98+ [tasks .mariadb -start ]
99+ description = " Start MariaDB server with binlog enabled"
100+ depends = [" mariadb -init" ]
101101run = """
102102#!/bin/bash
103103set -e
127127fi
128128"""
129129
130- [tasks .mysql -stop ]
131- description = " Stop MySQL server"
130+ [tasks .mariadb -stop ]
131+ description = " Stop MariaDB server"
132132run = """
133133#!/bin/bash
134134PIDFILE="$PWD/$MYSQL_DATA_DIR/mariadbd.pid"
148148fi
149149"""
150150
151- [tasks .mysql -setup ]
151+ [tasks .mariadb -setup ]
152152description = " Create CDC user, database, and tables"
153- depends = [" mysql -start" ]
153+ depends = [" mariadb -start" ]
154154run = """
155155#!/bin/bash
156156set -e
187187echo "Database setup complete - 5 seed users created"
188188"""
189189
190- [tasks .mysql -status ]
191- description = " Check MySQL server status"
190+ [tasks .mariadb -status ]
191+ description = " Check MariaDB server status"
192192run = """
193193#!/bin/bash
194194PIDFILE="$PWD/$MYSQL_DATA_DIR/mariadbd.pid"
@@ -200,11 +200,11 @@ else
200200fi
201201"""
202202
203- [tasks .mysql -clean ]
204- description = " Stop MySQL and remove data directory"
205- depends = [" mysql -stop" ]
203+ [tasks .mariadb -clean ]
204+ description = " Stop MariaDB and remove data directory"
205+ depends = [" mariadb -stop" ]
206206run = """
207207#!/bin/bash
208208rm -rf "$MYSQL_DATA_DIR"
209- echo "MySQL data directory removed"
209+ echo "MariaDB data directory removed"
210210"""
0 commit comments