Note: The third method is only used in XSell and cannot be used in finalsell. Method 1: Temporarily use the auto-complete functionmysql -u root -p --auto-rehash Method 2: Use the autocomplete function permanentlyvim /etc/my.cnf [mysql] auto-rehash Method 3: Use the mycli software to implement automatic completionThis method requires the use of online sources to install the package yum -y install epel-release yum -y install python-pip yum -y install python-devel yum clean all yum -y install gcc libffi-devel openssl-devel && pip install --ignore-installed mycli==1.8.0 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel gcc wget https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz mkdir ~/.pip/ cat > ~/.pip/pip.conf <<EOF [global] index-url = https://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com EOF yum -y install libffi-devel zlib* python-devel openssl-devel tar -zxf Python-3.9.0.tgz cd Python-3.9.0/ ./configure --prefix=/usr/local/python --with-ssl make && make install ln -s /usr/local/python/bin/python3 /usr/bin/ echo 'export PATH=/usr/local/python/bin:$PATH' >> /etc/profile source /etc/profile pip3 install mycli mycli This concludes this article about three methods of automatically completing commands in the MySQL database. For more information about automatically completing commands in MySQL, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Pure CSS3 to achieve pet chicken example code
>>: JavaScript removes unnecessary properties of an object
Table of contents 1. setState() Description 1.1 U...
Under the instructions of my leader, I took over ...
Table of contents 1. Error message 2. Cause of er...
question When installing Docker using Alibaba Clo...
Table of contents 1. Scenario Description 2. Solu...
When using MySQL to run certain statements, a dea...
HTML Paragraph Paragraphs are defined by the <...
Table of contents PXE implements unattended batch...
Copy data When copying data remotely, we usually ...
NProgress is the progress bar that appears at the...
Assume that a node in the three-node MGR is abnor...
1. The role of index In general application syste...
Prerequisites To run containers on Windows Server...
The GtkTreeView component is an advanced componen...
These specifications are designed to allow for bac...