Redhat installation Mysqldb-python

Source: Internet
Author: User

1 Install the mysql-connector-c-6.1.6-linux-glibc2.5-i686 client first

2 Installing Setuptools-27.2.0.zip

3 Installing Configparser-3.5.0.tar

1 Official website Download Mysql-python-1.2.5.zip

2 upload to Redhat system specified directory, use unzip Mysql-python-1.2.5.zip command to extract

3 Go to Unzip after directory execution:

Python setup.py Build

Python setup.py Install

Need to modify the Mysql-python-1.2.5.zip extract directory under the site.cfg file Mysql_config, configure the Mysql_config path.

This process may also not find the libmysqlclient.so.18 dynamic library, need to indicate the path or directly copied to the/usr/lib

There is to follow the procedure will prompt Mysql-python-1.2.5/mysqldb directory connections.py and cursors.py inside there are syntax errors, can be modified under can compile the past. I am here according to the time inside is 2. A few languages, and I am using 3.5. A slight syntax correction after compiling the pass.


Redhat installation Mysqldb-python

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.