haiwen / ccnet-server

Internal communication framework and user/group management for Seafile server
Other
17 stars 36 forks source link

Connection to Mysql server only Unix socket #48

Closed demian-ionov closed 3 years ago

demian-ionov commented 4 years ago

Support connection to Mysql server only Unix socket

Example: seafile.conf [database] type=mysql db_name=seafile_db user=seafile password=secret unix_socket=/var/run/mysqld/mysqld.sock port=0 connection_charset = utf8

ccnet.conf [Database] ENGINE=mysql DB=ccnet_db USER=seafile PASSWD=secret UNIX_SOCKET=/var/run/mysqld/mysqld.sock PORT=0 CONNECTION_CHARSET = utf8

seahub_settings.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'seahub_db', 'USER': 'seafile', 'PASSWORD': 'secret', 'HOST':'/var/run/mysqld/mysqld.sock' } }