前言
朋友介紹了一個工具,mycli,支持MySQL查詢語句自動補全等,這里給大家介紹一下。
大家也可以直接去官網看一下,安裝使用都很簡單。
安裝
$ pip install -U mycli
$ brew update && brew install mycli # Only on OS X
$ sudo apt-get install mycli # Only on debian or ubuntu
三種方式,簡單到不行
登錄數據庫
也是三種方式,很簡單
➜ mycli -h localhost -u root test
Version: 1.10.0
Chat: https://gitter.im/dbcli/mycli
Mail: https://groups.google.com/forum/#!forum/mycli-users
Home: http://mycli.net
Thanks to the contributor - Daniel Black
mysql root@localhost:test> quit
➜mycli mysql -u root
Version: 1.10.0
Chat: https://gitter.im/dbcli/mycli
Mail: https://groups.google.com/forum/#!forum/mycli-users
Home: http://mycli.net
Thanks to the contributor - Steve Robbins
➜ mycli mysql://root@localhost:3306/test
Version: 1.10.0
Chat: https://gitter.im/dbcli/mycli
Mail: https://groups.google.com/forum/#!forum/mycli-users
Home: http://mycli.net
Thanks to the contributor - Iryna Cherniavska
mysql root@localhost:test>