File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ Looking for help?
85
85
-f FILE, --file FILE Location of configuration file (default:
86
86
mysql2pgsql.yml). If none exists at that path,
87
87
one will be created for you.
88
-
88
+
89
89
90
90
Don't worry if this is your first time, it'll be gentle.
91
91
@@ -101,8 +101,11 @@ to edit. For the impatient, here is what the file contains.
101
101
102
102
::
103
103
104
- # if a socket is specified we will use that
105
- # if tcp is chosen you can use compression
104
+ # a socket connection will be selected if a 'socket' is specified
105
+ # also 'localhost' is a special 'hostname' for MySQL that overrides the 'port' option
106
+ # and forces it to use a local socket connection
107
+ # if tcp is chosen, you can use compression
108
+
106
109
mysql:
107
110
hostname: localhost
108
111
port: 3306
Original file line number Diff line number Diff line change @@ -37,8 +37,11 @@ def reset_configfile(self, file_path):
37
37
f .write (CONFIG_TEMPLATE )
38
38
39
39
CONFIG_TEMPLATE = """
40
- # if a socket is specified we will use that
41
- # if tcp is chosen you can use compression
40
+ # a socket connection will be selected if a 'socket' is specified
41
+ # also 'localhost' is a special 'hostname' for MySQL that overrides the 'port' option
42
+ # and forces it to use a local socket connection
43
+ # if tcp is chosen, you can use compression
44
+
42
45
mysql:
43
46
hostname: localhost
44
47
port: 3306
You can’t perform that action at this time.
0 commit comments