I looked over the documentation again, and found out that I can use the --init-file option to run some SQL when the server starts up. This does what I need, without using mariadb-embedded. Thanks!
- Bug#971778: mariadb-client-core-10.5: mariadb-embedded i... argv minus one
- Bug#971778: [debian-mysql] Bug#971778: mariadb-clie... Faustin Lammler
- Bug#971778: [debian-mysql] Bug#971778: mariadb-... Otto Kekäläinen
- Bug#971778: [debian-mysql] Bug#971778: mari... argv minus one
- Bug#971778: [debian-mysql] Bug#971778: ... Otto Kekäläinen
- Bug#971778: [debian-mysql] Bug#971... argv minus one
- Bug#971778: [debian-mysql] Bug... Otto Kekäläinen