GitHub has all kinds of magic tools. Today I found a command line tool for operating databases, which can automatically complete and highlight syntax. In the past, when typing SQL in the terminal, you not only had to remember the table name and field name, but also various functions to type out a complete statement, otherwise you had to Google Baidu to check the document first. With the mycli command line auxiliary tool, I can save a lot of trouble. You can first look at the effect diagram: If you don’t try it yourself, the feeling may not be so strong, so you might as well try it yourself. Under normal circumstances, you can install it directly using the pip command pip install mycli If the installation goes wrong, you can refer to the official documentation, or upgrade your pip tool. I need to upgrade pip to install it normally in the CentOS environment. $ sudo yum install python-pip mycli supports multiple platforms, including Windows, macOS, and Linux. How to use it? mycli completely inherits the parameters in the mysql command, so there is no learning cost. Connect to the database, mysql also does this: mycli -u your_user_name -h your_host -p your_password --database your_db_name After successfully connecting to the database, the operation is the same as usual when using SQL input. The only difference is that there will be an automatic prompt for each character typed, the keywords are highlighted, and multiple prompt items can be switched up and down by pressing the Tab key to select different items. Why not try it yourself? The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Using Apache ab to perform http performance testing
>>: How to create a basic image of the Python runtime environment using Docker
The RHEL/CentOS series of Linux operating systems...
1. I purchased a VPS and CentOS system, and found...
Original text: https://dev.mysql.com/doc/refman/8...
First, you need to download and install Navicat f...
Need to know how many days there are before an im...
Installation path: /application/mysql-5.7.18 1. P...
background: There is a flask project that provide...
Preface I need to add a synchronized scrolling fe...
How to implement text icons through CSS /*icon st...
Table of contents MySQL delete syntax alias probl...
https://docs.microsoft.com/en-us/windows/wsl/wsl-...
As the number of visits increases, the pressure o...
Forms in HTML can be used to collect various type...
Not only does it reduce the cost of website develo...
Format Encoding 1. Please set the page width with...