mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-15 10:38:35 +02: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:
1 parent
3ec2a898b8
commit
3c9bcfb864
2 files changed
+19
-9
No files matched your search
@@ -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