• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hujianxin
V2EX  ›  程序员

推荐一个命令行软件 mycli,智能不全,语法高亮,超级帅!

  •  1
     
  •   hujianxin · Nov 5, 2015 · 6759 views
    This topic created in 4024 days ago, the information mentioned may be changed or developed.
    http://mycli.net/
    Mysql的命令行软件。
    Supplement 1  ·  Nov 5, 2015
    补全!!!!!!!!!!
    26 replies  •  2015-11-06 12:53:00 +08:00
    staticor
    staticor
    Nov 5, 2015
    1
    智能补全 :)
    harry890829
    harry890829
    Nov 5, 2015
    2
    哈哈,用了一段时间了,最近发现一个问题,如果我 sql 查出来的表比较宽,右边的就超出屏幕了……可能是有什么设置没弄好
    zael
    zael
    Nov 5, 2015
    3
    已装,确实不错,赞一个
    huson
    huson
    Nov 5, 2015
    4
    不错 谢谢推荐
    nisnaker
    nisnaker
    Nov 5, 2015
    5
    交卷前不检查的吗。。。
    zacard
    zacard
    Nov 5, 2015
    6
    以装。。。
    congeec
    congeec
    Nov 5, 2015❤️1
    7
    ........................
    https://github.com/jonathanslenders/python-prompt-toolkit
    还有 pgcli, ptpython 。都不知道?
    azuginnen
    azuginnen
    Nov 5, 2015
    8
    有意思啊
    hujianxin
    hujianxin
    OP
    Nov 5, 2015
    9
    @congeec 第一次听说,长见识啦!
    cxbig
    cxbig
    Nov 5, 2015
    10
    凑合吧,好歹是命令行的。
    比 JetBrains IDEs 或者 Navicat 的 GUI 工具差远了。
    spacewander
    spacewander
    Nov 5, 2015
    11
    @harry890829
    两种解决方法:
    一种是查询之前在 sql 语句结尾加‘\G ’,变成竖直显示模式
    另一种是按右箭头移动下 pager 。 Mycli 的输出是通过系统定义的 pager 显示的,所以只要移动下 pager 就好啦。
    mitoop
    mitoop
    Nov 5, 2015
    12
    不支持问豆丝,babun 里也不行
    mitoop
    mitoop
    Nov 5, 2015
    13
    Install pycrypto by default, but only if we're not on windows.
    why not cross plateform?
    wklken
    wklken
    Nov 5, 2015
    14
    @spacewander 其实我是觉得每次查完, 需要手动 q 退出才能输入挺麻烦的>_<
    cevincheung
    cevincheung
    Nov 6, 2015
    15
    一直在用 pgcli
    hzgmaxwell
    hzgmaxwell
    Nov 6, 2015
    16
    赞!
    spacewander
    spacewander
    Nov 6, 2015 via Android
    17
    @wklken
    可以把 PAGER 系统变量设置成 cat ,需要分页看的时候再设回 less 。
    randyzhao
    randyzhao
    Nov 6, 2015
    18
    哭哭 一直都是手打呢....
    ipconfiger
    ipconfiger
    Nov 6, 2015
    19
    看 LZ 的标题就可以知道补全的缺点了,用 pgcli 的时候就出现过补全造成的手残事件,在生产系统上错误 drop 掉一个表,幸亏不是啥重要的表,吓死宝宝了,以后都还是老实的打好验证后再贴进去执行
    Lucups
    Lucups
    Nov 6, 2015
    20
    @ipconfiger 我觉得可以加一个功能,凡是非查询语句(即改动数据的),全部要确认一遍。
    比如你输入一个 drop xxx ,提交后命令行来一句:
    Are you sure? please input[I am sure, never regret]:

    类似于 github 删除仓库的时候要输入一遍仓库名一样。
    ipconfiger
    ipconfiger
    Nov 6, 2015
    21
    @Lucups 对于一个严肃认真的数据库客户端而言,这个 double check 的功能是必须的!

    除了 SELECT 外的语句均需要这么问一遍才行
    Lucups
    Lucups
    Nov 6, 2015
    22
    @ipconfiger 原来你就是那个压力很大同志。。。
    ipconfiger
    ipconfiger
    Nov 6, 2015
    23
    @Lucups 😂😂😂😂😂😂😂
    neoFaster
    neoFaster
    Nov 6, 2015
    24
    不建议新手安装,新手还是多练手,自己打比较好。
    Wangxf
    Wangxf
    Nov 6, 2015
    25
    表列数很多的情况下无法显示更多列啊
    phantomer
    phantomer
    Nov 6, 2015
    26
    Postgres 也有一个, pip install pgcli
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2428 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 89ms · UTC 12:07 · PVG 20:07 · LAX 04:07 · JFK 07:07
    ♥ Do have faith in what you're doing.