Last active
August 29, 2015 14:26
-
-
Save shoji-mochizuki/006c0b9e8cc113289279 to your computer and use it in GitHub Desktop.
mycliでMySQLコマンドの補完機能を簡単に使う ref: http://qiita.com/shojimotio/items/efc8fce9ce3ebe179897
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql root@localhost:wordpressdb> SELECT * FROM | |
wp_commentmeta | |
wp_comments | |
wp_links | |
wp_options | |
wp_postmeta | |
wp_posts | |
wp_term_relationships |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo yum install python-pip | |
$ sudo pip install mycli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mycli -u root -p | |
Password: | |
Version: 1.0.1 | |
Chat: https://gitter.im/dbcli/mycli | |
Mail: https://groups.google.com/forum/#!forum/mycli-users | |
Home: http://mycli.net | |
Thanks to the contributor - Lewis Peckover | |
mysql root@localhost:(none)> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql root@localhost:(none)> show | |
AUTHORS | |
BINARY LOGS | |
BINLOG EVENTS | |
CHARACTER SET | |
COLLATION | |
COLUMNS | |
CONTRIBUTORS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql root@localhost:wordpressdb> SELECT * FROM wp_postmeta | |
+-----------+-----------+-------------------+--------------+ | |
| meta_id | post_id | meta_key | meta_value | | |
|-----------+-----------+-------------------+--------------| | |
| 1 | 2 | _wp_page_template | default | | |
| 2 | 1 | _edit_lock | 1438324456:1 | | |
+-----------+-----------+-------------------+--------------+ | |
2 rows in set | |
Command Time: 0.000s | |
Format Time: 0.001s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment