mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 04:03:35 +08:00
chore: add dsn for connection to mysql (#5060)
* chore: add dsn for connection to mysql * add comment * new comment * fix: validate dsn and adapt password
This commit is contained in:

committed by
GitHub

parent
3ec2a898b8
commit
3c9bcfb864
@@ -51,6 +51,9 @@ dbFile = "./filer.db" # sqlite db file
|
||||
# ) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
|
||||
enabled = false
|
||||
# dsn will take priority over "hostname, port, username, password, database".
|
||||
# [username[:password]@][protocol[(address)]]/dbname[?param1=value1&...¶mN=valueN]
|
||||
dsn = "root@tcp(localhost:3306)/seaweedfs?collation=utf8mb4_bin"
|
||||
hostname = "localhost"
|
||||
port = 3306
|
||||
username = "root"
|
||||
|
Reference in New Issue
Block a user