calzoneman / sync

Node.JS Server and JavaScript/HTML Client for synchronizing online media
Other
1.47k stars 231 forks source link

Does sync support connecting to mysql through a unix socket? #986

Closed Zankaria closed 2 months ago

Zankaria commented 2 months ago

Does sync support connecting to mysql through a unix socket? The documentation on the configuration seems to imply no.

# MySQL server details
# server: domain or IP of MySQL server
# database: a MySQL database that the user specified has read/write access to
# user: username to authenticate as
# password: password for user
mysql:
  server: 'localhost'
  port: 3306
  database: 'cytube3'
  user: 'cytube3'
  password: ''
  pool-size: 10

If no, could it be implemented?

calzoneman commented 2 months ago

The connection is managed by knex so you would probably just need to patch this to not assume the configuration is host/port.