Closed demian-ionov closed 3 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' } }
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' } }