Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit 558ad5d

Browse files
committed
Add comments for MySQL new auth methods
1 parent 366ac44 commit 558ad5d

File tree

1 file changed

+49
-45
lines changed

1 file changed

+49
-45
lines changed
Lines changed: 49 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,52 @@
11
{
2-
"connections": {
3-
/*
4-
"Generic Template": { // Connection name, used in menu (Display name)
5-
"type" : "pgsql", // DB type: (mysql, pgsql, oracle, vertica, sqlite, firebird, sqsh)
6-
"host" : "HOSTNAME", // DB host to connect to
7-
"port" : "PORT", // DB port
8-
"database" : "DATABASE", // DB name (for SQLite this is the path to DB file)
9-
"username" : "USERNAME", // DB username
10-
"password" : null, // (if you are using PostgreSQL, you must setup a "pgpass.conf" file and set it to null)
11-
"encoding" : "utf-8" // Your DB encoding. Default: utf-8
12-
},
13-
"Connection MySQL": {
14-
"type" : "mysql",
15-
"host" : "127.0.0.1",
16-
"port" : 3306,
17-
"username": "user",
18-
"password": "password",
19-
"database": "dbname",
20-
"encoding": "utf-8"
21-
},
22-
"Connection PostgreSQL": {
23-
"type" : "pgsql",
24-
"host" : "127.0.0.1",
25-
"port" : 5432,
26-
"username": "anotheruser",
27-
"database": "dbname",
28-
"encoding": "utf-8"
29-
},
30-
"Connection Oracle": {
31-
"type" : "oracle",
32-
"host" : "127.0.0.1",
33-
"port" : 1522,
34-
"username": "anotheruser",
35-
"password": "password",
36-
"database": "dbname",
37-
"service" : "servicename",
38-
"encoding": "utf-8"
39-
},
40-
"Connection SQLite": {
41-
"type" : "sqlite",
42-
"database": "d:/sqlite/sample_db/chinook.db", // note the forward slashes in path
43-
"encoding": "utf-8"
44-
}
45-
*/
2+
"connections": {
3+
/*
4+
"Generic Template": { // Connection name, used in menu (Display name)
5+
"type" : "pgsql", // DB type: (mysql, pgsql, oracle, vertica, sqlite, firebird, sqsh)
6+
"host" : "HOSTNAME", // DB host to connect to
7+
"port" : "PORT", // DB port
8+
"database" : "DATABASE", // DB name (for SQLite this is the path to DB file)
9+
"username" : "USERNAME", // DB username
10+
"password" : "PASSWORD", // if you are using PostgreSQL - setup a "pgpass.conf" file and set it to null
11+
"encoding" : "utf-8" // DB encoding. Default: utf-8
4612
},
47-
"default": null
13+
"Connection MySQL": {
14+
"type" : "mysql",
15+
"host" : "127.0.0.1",
16+
"port" : 3306,
17+
"database": "dbname",
18+
"username": "user",
19+
// use of password for MySQL is not recommended (use "defaults-extra-file" or "login-path")
20+
"password": "password", // you will get a security warning in the output
21+
// "defaults-extra-file": "/path/to/defaults_file_with_password", // use [client] or [mysql] section
22+
// "login-path": "your_login_path", // login path in your ".mylogin.cnf"
23+
"encoding": "utf-8"
24+
},
25+
"Connection PostgreSQL": {
26+
"type" : "pgsql",
27+
"host" : "127.0.0.1",
28+
"port" : 5432,
29+
"database": "dbname",
30+
"username": "anotheruser",
31+
"encoding": "utf-8"
32+
// for PostgreSQL "password" is not needed, instead setup "pgpass.conf" file
33+
},
34+
"Connection Oracle": {
35+
"type" : "oracle",
36+
"host" : "127.0.0.1",
37+
"port" : 1522,
38+
"database": "dbname",
39+
"username": "anotheruser",
40+
"password": "password",
41+
"service" : "servicename",
42+
"encoding": "utf-8"
43+
},
44+
"Connection SQLite": {
45+
"type" : "sqlite",
46+
"database": "d:/sqlite/sample_db/chinook.db", // note the forward slashes in path
47+
"encoding": "utf-8"
48+
}
49+
*/
50+
},
51+
"default": null
4852
}

0 commit comments

Comments
 (0)