Database socket connections #7575
Unanswered
miken32
asked this question in
Error / Bug Report
Replies: 1 comment 1 reply
-
|
Just so there is a workaround for others to find, you can use a connection string. The parameters in the "query string" are not well documented but it seems that mysql2 takes the same options as the connection object, and not the documented ones (e.g. DATABASE_URL="mysql://wikijs:wikijsrocks@localhost/wiki?socketPath=%2Frun%2Fmariadb%2Fmariadb.sock" node serverThis should still be supported in the config file though. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There appears to be no way to connect over a database socket. I'm trying to use MariaDB and from what I can see in
server/core/db.jsthere simply aren't any options for this common situation. Assuming the backend driver supports it (mysql2 does, I assume others do as well) it should be a simple matter to accept them in the configuration and pass them on?Beta Was this translation helpful? Give feedback.
All reactions