SerniorS
Convex Community11mo ago
7 replies
Sernior

Trouble connecting to mysql locally

Hello, I am having some problems with self-hosting a local mysql convex for a client who wants everything local.
I am quite new to docker and I do not understand what is going on exactly I did follow the guide but even after I did setup my mysql server created a user I wish to use for the docker and set the enviromental variable MYSQL_URL correctly I get these errors

all I did was exactly what the guide suggests:

mysql -e "CREATE DATABASE convex_self_hosted;"
export MYSQL_URL=mysql://<your-username>@host.docker.internal:3306
export DO_NOT_REQUIRE_SSL=1
docker compose up
image.png
Was this page helpful?