Unable to create an user using mysql_embedded
As you are using the docker mariadb image the best way is to set the environment variables when running the image:


MYSQL_DATABASE
MYSQL_USER
MYSQL_PASSWORD


ref: https://hub.docker.com/_/mariadb/

These will case the database and user to be created with grants (ref)