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
[](https://gitter.im/dbcli/mycli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6
5
7
6
A command line client for MySQL that can do auto-completion and syntax highlighting.
8
7
@@ -53,6 +52,7 @@ $ sudo apt-get install mycli # Only on debian or ubuntu
53
52
-h, --host TEXT Host address of the database.
54
53
-P, --port INTEGER Port number to use for connection. Honors
55
54
$MYSQL_TCP_PORT.
55
+
56
56
-u, --user TEXT User name to connect to the database.
57
57
-S, --socket TEXT The socket file to use for connection.
58
58
-p, --password TEXT Password to connect to the database.
@@ -63,8 +63,11 @@ $ sudo apt-get install mycli # Only on debian or ubuntu
63
63
--ssh-password TEXT Password to connect to ssh server.
64
64
--ssh-key-filename TEXT Private key filename (identify file) for the
65
65
ssh connection.
66
+
66
67
--ssh-config-path TEXT Path to ssh configuration.
67
-
--ssh-config-host TEXT Host for ssh server in ssh configurations (requires paramiko).
68
+
--ssh-config-host TEXT Host to connect to ssh server reading from ssh
69
+
configuration.
70
+
68
71
--ssl-ca PATH CA file in PEM format.
69
72
--ssl-capath TEXT CA directory.
70
73
--ssl-cert PATH X509 cert in PEM format.
@@ -73,33 +76,43 @@ $ sudo apt-get install mycli # Only on debian or ubuntu
73
76
--ssl-verify-server-cert Verify server's "Common Name" in its cert
74
77
against hostname used when connecting. This
75
78
option is disabled by default.
79
+
76
80
-V, --version Output mycli's version.
77
81
-v, --verbose Verbose output.
78
82
-D, --database TEXT Database to use.
79
83
-d, --dsn TEXT Use DSN configured into the [alias_dsn]
80
84
section of myclirc file.
85
+
81
86
--list-dsn list of DSN configured into the [alias_dsn]
82
87
section of myclirc file.
83
-
--list-ssh-config list ssh configurations in the ssh config (requires paramiko).
88
+
89
+
--list-ssh-config list ssh configurations in the ssh config
90
+
(requires paramiko).
91
+
84
92
-R, --prompt TEXT Prompt format (Default: "\t \u@\h:\d> ").
85
93
-l, --logfile FILENAME Log every query and its results to a file.
86
94
--defaults-group-suffix TEXT Read MySQL config groups with the specified
87
95
suffix.
96
+
88
97
--defaults-file PATH Only read MySQL options from the given file.
89
98
--myclirc PATH Location of myclirc file.
90
99
--auto-vertical-output Automatically switch to vertical output mode
91
100
if the result is wider than the terminal
92
101
width.
102
+
93
103
-t, --table Display batch output in table format.
94
104
--csv Display batch output in CSV format.
95
105
--warn / --no-warn Warn before running a destructive query.
96
106
--local-infile BOOLEAN Enable/disable LOAD DATA LOCAL INFILE.
97
-
--login-path TEXT Read this path from the login file.
107
+
-g, --login-path TEXT Read this path from the login file.
98
108
-e, --execute TEXT Execute command and quit.
99
109
--init-command TEXT SQL statement to execute after connecting.
100
110
--charset TEXT Character set for MySQL session.
111
+
--password-file PATH File or FIFO path containing the password
Copy file name to clipboardExpand all lines: changelog.md
+13-1
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,27 @@
1
1
TBD
2
-
=======
2
+
===
3
3
4
4
Bug Fixes:
5
5
----------
6
6
* Allow `FileNotFound` exception for SSH config files.
7
+
* Fix startup error on MySQL < 5.0.22
8
+
* Check error code rather than message for Access Denied error
9
+
* Fix login with ~/.my.cnf files
7
10
8
11
Features:
9
12
---------
10
13
* Add `-g` shortcut to option `--login-path`.
14
+
* Alt-Enter dispatches the command in multi-line mode.
15
+
* Allow to pass a file or FIFO path with --password-file when password is not specified or is failing (as suggested in this best-practice https://www.netmeister.org/blog/passing-passwords.html)
11
16
* Reuse the same SSH connection for both main thread and completion thread.
12
17
18
+
Internal:
19
+
---------
20
+
* Remove unused function is_open_quote()
21
+
* Use importlib, instead of file links, to locate resources
22
+
* Test various host-port combinations in command line arguments
23
+
* Switched from Cryptography to pyaes for decrypting mylogin.cnf
0 commit comments