Install MySQL-python

Source: Internet
Author: User

This article describes how to install MySQL-python. The main function of MySQL-python is to access the MySQL database class library in python, in django, this class library is used by default to access MySQL.

1. Download

Wget http://downloads.sourceforge.net/project/MySQL-python/MySQL-python-test/1.2.3c1/MySQL-python-1.2.3c1.tar.gz? Use_mirror = ncu

2. Modify the site. cfg file

Modifying the site. cfg folder mainly tells the myslq-python module the path of the MySQL_config file. Note that it is not the my. cnf file.

Remove the following line of configuration comments from the file and change "/usr/local/bin/MySQL_config" to the path of the MySQL_conf file in your system.

 
 
  1. # mysql _config = /usr/local/bin/mysql_config 

3. Install

 
 
  1. tar zxvf MySQL-python-1.2.3c1.tar.gz  
  2. cd MySQL-python-1.2.3c1  
  3. python setup.py install 

The above content is an introduction to installing MySQL-python. I hope you will have some gains. We hope you will have some gains.

The above content describes how to install MySQL-python. I hope it will help you in this regard.

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.