aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2023-12-21 05:20:58 +0500
committerGitHub <noreply@github.com>2023-12-20 16:20:58 -0800
commit3c9bcfb864b6c06cdc8ca189655a896feab9d343 (patch)
treec8f18a1015b5189cddf2f7b1ad8fcfed143f511a /weed/command
parent3ec2a898b8ec2f2e07d12fbde74d2d303a686ec4 (diff)
downloadseaweedfs-3c9bcfb864b6c06cdc8ca189655a896feab9d343.tar.xz
seaweedfs-3c9bcfb864b6c06cdc8ca189655a896feab9d343.zip
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
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/scaffold/filer.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/scaffold/filer.toml b/weed/command/scaffold/filer.toml
index 55876bea0..231e7510a 100644
--- a/weed/command/scaffold/filer.toml
+++ b/weed/command/scaffold/filer.toml
@@ -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&...&paramN=valueN]
+dsn = "root@tcp(localhost:3306)/seaweedfs?collation=utf8mb4_bin"
hostname = "localhost"
port = 3306
username = "root"