MySQL数据库自动补全命令的三种方式

 一、MySQL数据库自动补全命令的三种方式

方式一:临时使用自动补全功能

mysql -u root -p --auto-rehash

方式二:永久使用自动补全功能

vi /etc/my.cnf
[mysql]
auto-rehash

方式三:使用软件mycli实现自动补全功能

yum -y install epel-release

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 -zxvf 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 -u root -p <密码>

二、Navicat 图形化操作 

 

posted @ 2021-08-26 00:21  DoYouWantMore  阅读(1084)  评论(0编辑  收藏  举报