#安装pip: #CentOS/rhelyum install python-pippip install --upgrade pip#ubuntu:sudo Apt-get install python-pip python-dev build-essential pip install --upgrade pipsudo pip install --upgrade virtualenv#pip or easy_install problems are handled according to the results of the command execution, What I'm experiencing here is mostly related to the version issue # installation mycli#linux:pip install mycli#os xbrew install mycli# use: MYCLI --helpusage: mycli [options] [database]options: -h, --host text Host address of the database. -p, --port text port number to use for connection. Honors $MYSQL _tcp_ Port -u, --user&nbSp Text user name to connect to the database. -S, --socket TEXT The socket file to use for connection. -p, --password Force password prompt. --pass TEXT password to connect to the database -v, --version Version of mycli. -D, --database TEXT database to use. -r, --prompt text prompt format (default: "\t \[email protected]\h:\d> ") -l, - -logfile filename log every query and its results to a file. -- help Show this message and exit. #示例: Mycli local_databasemycli -h localhost -u root app_dbmycli mysql://[email protected]:3306/django_poll#github : MYCLI: HTTPS://GITHUB.COM/DBCLI/MYCLIPGCLI: HTTPS://GITHUB.COM/DBCLI/PGCLI
MySQL command line client: MYCLI