MySQL 命令行辅助 mycli

Install

Mycli is tested on macOS and Linux. It runs on Python 2.7 and 3.4+.

NOTE: Python 2.6 support was dropped in mycli 1.9.0. If you’re running Python 2.6, you’ll want to install mycli 1.8.1.

######Python Package:

If you already know how to install python packages, then you can do:

  • You might need sudo.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$ pip install mycli
or
$ easy_install mycli

# Windows:
# Follow the instructions on this blogpost to install mycli on Windows: https://www.codewall.co.uk/installing-using-mycli-on-windows/

# macOS:
#The easiest way install mycli on a Mac is to use Homebrew.
$ brew install mycli


# Linux:
# Debian/Ubuntu Package:
# https://packages.debian.org/search?keywords=mycli
$ sudo apt-get update
$ sudo apt-get install mycli

# Fedora
$ sudo dnf install mycli


# RHEL, Centos:
# We don't have packages for RHEL or Centos, yet. Instead, use pip to install mycli. You can install pip on your system using:
$ sudo yum install python-pip python-devel
# Once that is installed, you can install mycli:
$ sudo pip install mycli
Install Error QA.
1
Cannot uninstall 'configobj'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Fix code
1
pip install --ignore-installed mycli
# MySQL
You forgot to set the qrcode for Alipay. Please set it in _config.yml.
You forgot to set the qrcode for Wechat. Please set it in _config.yml.
You forgot to set the business and currency_code for Paypal. Please set it in _config.yml.
You forgot to set the url Patreon. Please set it in _config.yml.
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×