› MySQL 5.5 Community Server
› MySQL 5.6 Community Server
› Percona Configuration Wizard
› XtraBackup 搭建主从复制
Great Sites on MySQL
› Percona
› MySQL Performance Blog
› Severalnines
推荐管理工具
› Sequel Pro
› phpMyAdmin
推荐书目
› MySQL Cookbook
MySQL 相关项目
› MariaDB
› Drizzle
参考文档
› http://mysql-python.sourceforge.net/MySQLdb.html
realwangyibo
V2EX  ›  MySQL

在终端下输入的 SQL 语句含非 ASCII 字符时,移动光标有时会使显示错乱,有方法解决吗?

  •  
  •   realwangyibo ·
    realwangyibo · May 3, 2017 · 3672 views
    This topic created in 3431 days ago, the information mentioned may be changed or developed.
    使用 iTerm2,开启非 ASCII 字符占用 2 格空间。

    SQL 语句中有非 ASCII 字符时,有时想要在执行前修改,光标移动的过程中显示会错乱……
    3 replies  •  2017-05-04 17:20:17 +08:00
    lilydjwg
        1
    lilydjwg  
       May 4, 2017
    你用的是什么命令行的 SQL 工具呢?
    是不是没有编译进 readline 支持呢?
    实在不行的话,像我这样自己开发一个 SQL shell 用?
    realwangyibo
        2
    realwangyibo  
    OP
       May 4, 2017
    @lilydjwg 默认的,mysql -uroot
    找找别的 shell 或许可以。
    lilydjwg
        3
    lilydjwg  
       May 4, 2017
    @realwangyibo #2 你可以试试 rlwrap 包一下。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   983 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:26 · PVG 02:26 · LAX 11:26 · JFK 14:26
    ♥ Do have faith in what you're doing.