Skip to content

Commit

Permalink
improve desc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Sep 26, 2023
1 parent dce7896 commit ede82c7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ $ juicefs format mysql://jfs:mypassword@(127.0.0.1:3306)/juicefs myjfs
# A safer alternative
$ META_PASSWORD=mypassword juicefs format mysql://jfs:@(127.0.0.1:3306)/juicefs myjfs
# MySQL password containing special characters
$ juicefs format 'mysql://jfs:123@45@(127.0.0.1:3306)/juicefs' myjfs
# or
$ META_PASSWORD=123@45 juicefs format mysql://jfs:@(127.0.0.1:3306)/juicefs myjfs
# PostgreSQL password containing special characters
$ juicefs format 'postgres://jfs:123@[email protected]:5432/juicefs' myjfs
# or
$ META_PASSWORD=123@45 juicefs format 'postgres://jfs:@127.0.0.1:5432/juicefs' myjfs
# Create a volume with "quota" enabled
$ juicefs format sqlite3://myjfs.db myjfs --inodes 1000000 --capacity 102400
Expand Down

0 comments on commit ede82c7

Please sign in to comment.