mysql命令行爱好者必备工具mycli

作者:mrr 时间:2024-01-24 13:33:33 

mycli

MyCLI is a command line interface for MySQL, MariaDB, and Percona with auto-completion and syntax highlighting.

•Source: https://github.com/dbcli/mycli
•Chat: Gitter
•Mailing List: https://groups.google.com/forum/#!forum/mycli-users

mysql命令行爱好者必备工具mycli

Quick Start


If you already know how to install python packages, then you can simply do:
$ pip install mycli
If you're on macOS you can install it via homebrew.
$ brew update && brew install mycli
If you're having trouble with the quick start, check the install page for detailed instructions

Usage


$ mycli --help
Usage: mycli [OPTIONS] [DATABASE]
A MySQL terminal client with auto-completion and syntax highlighting.

 Examples:


- mycli my_database
- mycli -u my_user -h my_host.com my_database
- mycli mysql://my_user@my_host.com:3306/my_database

Options:


-h, --host TEXT    Host address of the database.
-P, --port INTEGER   Port number to use for connection. Honors
       $MYSQL_TCP_PORT.
-u, --user TEXT    User name to connect to the database.
-S, --socket TEXT    The socket file to use for connection.
-p, --password TEXT   Password to connect to the database.
--pass TEXT     Password to connect to the database.
--ssl-ca PATH     CA file in PEM format.
--ssl-capath TEXT    CA directory.
--ssl-cert PATH    X509 cert in PEM format.
--ssl-key PATH    X509 key in PEM format.
--ssl-cipher TEXT    SSL cipher to use.
--ssl-verify-server-cert  Verify server's "Common Name" in its cert
       against hostname used when connecting. This
       option is disabled by default.
-V, --version     Output mycli's version.
-v, --verbose     Verbose output.
-D, --database TEXT   Database to use.
-d, --dsn TEXT    Use DSN configured into the [alias_dsn]
       section of myclirc file.
--list-dsn     list of DSN configured into the [alias_dsn]
       section of myclirc file.
-R, --prompt TEXT    Prompt format (Default: "\t \u@\h:\d> ").
-l, --logfile FILENAME  Log every query and its results to a file.
--defaults-group-suffix TEXT Read MySQL config groups with the specified
       suffix.
--defaults-file PATH   Only read MySQL options from the given file.
--myclirc PATH    Location of myclirc file.
--auto-vertical-output  Automatically switch to vertical output mode
       if the result is wider than the terminal
       width.
-t, --table     Display batch output in table format.
--csv       Display batch output in CSV format.
--warn / --no-warn   Warn before running a destructive query.
--local-infile BOOLEAN  Enable/disable LOAD DATA LOCAL INFILE.
--login-path TEXT    Read this path from the login file.
-e, --execute TEXT   Execute command and quit.
--help      Show this message and exit.

blogroll

总结

以上所述是小编给大家介绍的mysql命令行爱好者必备工具mycli,网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!

来源:https://www.cnblogs.com/wghao/archive/2019/05/08/10829833.html

标签:mysql,命令行,cli
0
投稿

猜你喜欢

  • ASP中使用FileSystemObject时提高性能的一个小技巧

    2008-06-08 13:09:00
  • Go语言struct要使用 tags的原因解析

    2023-08-31 09:25:19
  • Python实现的概率分布运算操作示例

    2023-02-21 10:16:18
  • Asp.net 连接MySQL的实现代码[]

    2024-01-16 04:27:15
  • mysql中workbench实例详解

    2024-01-15 01:45:03
  • Python变量作用域LEGB用法解析

    2022-12-05 19:18:22
  • 详解pytorch tensor和ndarray转换相关总结

    2023-08-18 20:03:51
  • vue 解决data中定义图片相对路径页面不显示的问题

    2024-04-30 10:24:52
  • numpy.random.choice()函数详解

    2023-04-30 09:46:03
  • 完美解决MySQL中文乱码

    2011-03-16 15:16:00
  • innerHTML 的些摘记

    2009-06-01 15:42:00
  • 屏蔽Flash 右键菜单的方法

    2008-05-24 07:21:00
  • 详解使用Vue Router导航钩子与Vuex来实现后退状态保存

    2024-05-05 09:24:27
  • python修改字典键(key)的方法

    2023-04-16 20:26:57
  • sql格式化工具集合

    2024-01-14 02:15:14
  • Python Tkinter简单布局实例教程

    2021-03-08 13:41:23
  • Python3实现捕获Ctrl+C终止信号

    2021-10-17 14:03:55
  • 解析Anaconda创建python虚拟环境的问题

    2023-08-01 03:58:13
  • pandas DataFrame运算的实现

    2021-06-02 21:08:22
  • 优化 SQL Server 索引的小技巧

    2012-10-07 11:00:07
  • asp之家 网络编程 m.aspxhome.com