You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
juicefs mount -d "mysql://user:@(192.168.1.6:3306)/juicefs" /mnt/jfs
22
22
```
23
23
24
+
Similarly, `META_PASSWORD_FILE` can be used to provide the database password as a file:
25
+
26
+
```shell
27
+
export META_PASSWORD_FILE=/secret/mypassword.txt
28
+
juicefs mount -d "mysql://user:@(192.168.1.6:3306)/juicefs" /mnt/jfs
29
+
```
30
+
24
31
## Database connection control
25
32
26
33
MySQL is a multiple threads database, every client connection need a dedicate server thread, limition of total connections and new connects are prefered. JuiceFS now provides the following options for better control of the connections:
juicefs mount -d "postgres://[email protected]:5432/juicefs" /mnt/jfs
29
29
```
30
30
31
-
## Database connection control
31
+
Similarly, `META_PASSWORD_FILE` can be used to provide the database password as a file:
32
+
33
+
```shell
34
+
export META_PASSWORD_FILE=/secret/mypassword.txt
35
+
juicefs mount -d "postgres://[email protected]:5432/juicefs" /mnt/jfs
36
+
```
32
37
33
38
PostgreSQL is a multiple process database, every client connection need a dedicate server process, limition of total connections and new connects are prefered. JuiceFS now provides the following options for better control of the connections:
juicefs mount -d "redis://192.168.1.6:6379/1" /mnt/jfs
109
115
```
110
116
117
+
Similarly, the password can be provided from a file using as follows:
118
+
119
+
```shell
120
+
export META_PASSWORD_FILE=/secret/mypassword.txt
121
+
juicefs mount -d "redis://192.168.1.6:6379/1" /mnt/jfs
122
+
```
123
+
111
124
#### Set up TLS
112
125
113
126
JuiceFS supports both TLS server-side encryption authentication and mTLS mutual encryption authentication connections to Redis. When connecting to Redis via TLS or mTLS, use the `rediss://` protocol header. However, when using TLS server-side encryption authentication, it is not necessary to specify the client certificate and private key.
1. JuiceFS uses public [schema](https://www.postgresql.org/docs/current/ddl-schemas.html) by default, if you want to use a `non-public schema`, you need to specify `search_path` in the connection string parameter. e.g `postgres://user:[email protected]:5432/juicefs?search_path=pguser1`
juicefs mount -d "postgres://[email protected]:5432/juicefs" /mnt/jfs
658
+
```
659
+
611
660
#### Troubleshooting
612
661
613
662
The JuiceFS client connects to PostgreSQL via SSL encryption by default. If you encountered an error saying `pq: SSL is not enabled on the server`, you need to enable SSL encryption for PostgreSQL according to your own business scenario, or you can disable it by adding a parameter to the metadata URL Validation.
0 commit comments