Hello y'all,
I started working on a project and wanted to try out diesel for the db stuff. However I can't get it to connect to mariadb. I always get the error Can't connect to local server through socket '/run/mysqld/mysqld.sock'.
That's due to an "feature" of the underlying library (libmysqlclient). It replaces connection urls containing localhost automatically with connection urls using unix sockets. This does not work if the database is running inside of a docker container. You can work around this by just using an explicit ip there: