support both mysql and postgres

This commit is contained in:
Chris Lu
2018-05-26 22:02:49 -07:00
parent 87b3b84471
commit 869161a261
6 changed files with 127 additions and 30 deletions

View File

@@ -35,11 +35,11 @@ dir = "." # directory to store level db files
# ) DEFAULT CHARSET=utf8;
#
enabled = true
server = "localhost"
hostname = "localhost"
port = 3306
username = "root"
password = ""
database = "" # create or use an existing database, create the seaweedfs table.
database = "" # create or use an existing database
connection_max_idle = 2
connection_max_open = 100
@@ -52,11 +52,12 @@ connection_max_open = 100
# PRIMARY KEY (dirhash, name)
# );
enabled = false
server = "localhost"
hostname = "localhost"
port = 5432
username = "postgres"
password = ""
database = ""
database = "" # create or use an existing database
sslmode = "disable"
connection_max_idle = 100
connection_max_open = 100