mcp-server-mariadb-vector / entrypoint.sh
Kaballas's picture
xxx
372d551
raw
history blame
355 Bytes
#!/bin/bash
set -e
# Start MariaDB in the background
mysqld_safe --datadir=/var/lib/mysql &
# Wait for MariaDB to be ready
until mysqladmin ping --silent; do
echo "Waiting for MariaDB..."
sleep 2
done
# (Optional) Initialize DB/user if needed
# mysql -u root -e "CREATE DATABASE IF NOT EXISTS $MARIADB_DATABASE;"
# Start your FastAPI app
exec "$@"