We value the diversity of our community. We strive to amplify the voices of the oppressed to eradicate racism and xenophobia. We ask our community to stand together in support of the Black community.
MyCLI is a command line interface for MySQL, MariaDB, and Percona with auto-completion and syntaxhighlighting.
- Source: https://github.com/dbcli/mycli
- Bug tracker: https://github.com/dbcli/mycli/issues
Jan 08, 2020 $ python -version. To check latest version of python 2.x.x: $ python2 -version. To check latest version of python 3.x.x: $ python3 -version. Clearly it won’t be the latest version of python. There can be multiple methods to install python on a linux base system and it all depends on your linux system. Setting up database connections. On MacOS and Linux, there are two separate text files that need to be edited. UnixODBC includes a command-line executable called odbcinst, which can be used to query and modify the DSN files. Python downloads are located here (you will need to create a free MySQL login to download first). Make sure you choose the correct version, i.e. (python2.1.7 vs. Only the 'Architecture Independent' version worked for me.
If you already know how to install python packages, then you can simply do:
If you're on macOS you can install it via homebrew.
If you're having trouble with the quick start, check the install page fordetailed instructions.
- I am using OSX, so all my connections using -h localhost went straight to the MySQL instance on the host itself (via socket, -port is ignored). Using 127.0.0.1 instead of localhost forces a TCP connection on the right port, thus on the right container. And I ran brew stop mysql, it worked.
- $ mycli-help Usage: mycli OPTIONS DATABASE A MySQL terminal client with auto-completion and syntax highlighting. Examples:-mycli mydatabase-mycli-u myuser-h myhost. Com mydatabase-mycli mysql: // myuser @myhost. Com: 3306 / mydatabase Options:-h,-host TEXT Host address of the database.-P,-port INTEGER Port number to use for.
Released:
Python interface to MySQL
Project description
This is a fork of MySQLdb1.
This project adds Python 3 support and bug fixes.I hope this fork is merged back to MySQLdb1 like distribute was merged back to setuptools.
Support
Do Not use Github Issue Tracker to ask help. OSS Maintainer is not free tech support
When your question looks relating to Python rather than MySQL:
- Python mailing list python-list
- Slack pythondev.slack.com
Or when you have question about MySQL:
Install
Windows
Building mysqlclient on Windows is very hard.But there are some binary wheels you can install easily.
macOS (Homebrew)
Brew Multiple Mysql Versions
Install MySQL and mysqlclient:
If you don't want to install MySQL server, you can use mysql-client instead:
Linux
Note that this is a basic step. I can not support complete step for build for allenvironment. If you can see some error, you should fix it by yourself, or ask forsupport in some user forum. Don't file a issue on the issue tracker.
You may need to install the Python 3 and MySQL development headers and libraries like so:
$ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
# Debian / Ubuntu% sudo yum install python3-devel mysql-devel
# Red Hat / CentOS
Then you can install mysqlclient via pip now:
Customize build (POSIX)
mysqlclient uses mysql_config
or mariadb_config
by default for findingcompiler/linker flags.
You can use MYSQLCLIENT_CFLAGS
and MYSQLCLIENT_LDFLAGS
environmentvariables to customize compiler/linker options.
Documentation
Documentation is hosted on Read The Docs
Release historyRelease notifications | RSS feed
2.0.3
2.0.2
2.0.1
2.0.0
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2.post1
1.4.2
1.4.1
1.4.0
1.4.0rc3 pre-release
1.4.0rc2 pre-release
1.4.0rc1 pre-release
1.3.14
1.3.13
1.3.12
1.3.11
1.3.11rc1 pre-release
Brew Mysql Version Free
1.3.10
1.3.9
1.3.8
Brew Mysql Version Download
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size mysqlclient-2.0.3-cp36-cp36m-win_amd64.whl (179.0 kB) | File type Wheel | Python version cp36 | Upload date | Hashes |
Filename, size mysqlclient-2.0.3-cp37-cp37m-win_amd64.whl (179.0 kB) | File type Wheel | Python version cp37 | Upload date | Hashes |
Filename, size mysqlclient-2.0.3-cp38-cp38-win_amd64.whl (179.4 kB) | File type Wheel | Python version cp38 | Upload date | Hashes |
Filename, size mysqlclient-2.0.3-cp39-cp39-win_amd64.whl (179.4 kB) | File type Wheel | Python version cp39 | Upload date | Hashes |
Filename, size mysqlclient-2.0.3.tar.gz (88.9 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for mysqlclient-2.0.3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest |
---|---|
SHA256 | 3381ca1a4f37ff1155fcfde20836b46416d66531add8843f6aa6d968982731c3 |
MD5 | 9614ec630b00470851d4af1da4d0d0ef |
BLAKE2-256 | 2c3cbd285daffea87cb0d1e33a25c78e155a8e6c551419f38a7636c9de136eed |
Hashes for mysqlclient-2.0.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest |
---|---|
SHA256 | 0ac0dd759c4ca02c35a9fedc24bc982cf75171651e8187c2495ec957a87dfff7 |
MD5 | 04f767412b0d2a66ece0226204d3100c |
BLAKE2-256 | 6b06a486f3795cf39883815eacec56d00a8fb0e6e46226af5cdfa24ffb3d43ec |
Hashes for mysqlclient-2.0.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest |
---|---|
SHA256 | 71c4b330cf2313bbda0307fc858cc9055e64493ba9bf28454d25cf8b3ee8d7f5 |
MD5 | 3230a16ee5379b4a31763be526cf4614 |
BLAKE2-256 | f4f4916fb5ae7ec4438437060638d3e17aea6ba00614cf6a75905e2632c86b2b |
Hashes for mysqlclient-2.0.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest |
---|---|
SHA256 | fc575093cf81b6605bed84653e48b277318b880dc9becf42dd47fa11ffd3e2b6 |
MD5 | 9ee9582f2bc0e984bc244363606d890c |
BLAKE2-256 | 63151934083acfecfee06b7ddf048d9df6b59b2bf7f452cfac38ea54f738c5a4 |
Hashes for mysqlclient-2.0.3.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | f6ebea7c008f155baeefe16c56cd3ee6239f7a5a9ae42396c2f1860f08a7c432 |
MD5 | c1f213c1f5dd7b3490f1657957b60ef0 |
BLAKE2-256 | 3cdf59cd2fa5e48d0804d213bdcb1acb4d08c403b61c7ff7ed4dd4a6a2deb3f7 |