Install MYSQLDB in ubuntu, and record in pymssql _ MySQL

Source: Internet
Author: User
Install MYSQLDB in ubuntu, and record Ubuntu in pymssql

BitsCN.com

Install MYSQLDB on ubuntu and record pymssql

1. install MYSQLDB

9 wget http://jaist.dl.sourceforge.net/project/mysql-python/mysql-python-test/1.2.4b4/MySQL-python-1.2.4b4.tar.gz

Tar zxvf MySQL-python-1.2.4b4.tar.gz

Cd MySQL-python-1.2.4b4/

sudo apt-get install libmysqlclient-devsudo apt-get install python-devpython setup.py buildpython setup.py install

2. install pymssql

 28  apt-get install easy_install   29  ls   30  tar zxvf -f pymssql.tar.gz    31  tar -zxvf pymssql-2.0.0b1-dev-20130403.tar.gz    32  cd pymssql-2.0.0b1-dev-20130403/   33  ls   34  apt-get install Cpython   35  apt-get install cpython   36  apt-get install freetds   37  cd ..   38  ls   39  tar zxvf freetds-stable.tgz    40  cd freetds-0.91/   41  ls   42  ./configure --prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdblib --enable-dbmfix --with-gnu-ld --enable-shared --enable-static   43  make   44  apt-get install make   45  make   46  make install   47  ls   48  cd ..   49  ls   50  rm -rf Cython-0.19.1   51  tar zxvf Cython-0.19.1.tar.gz  cd Cython-0.19.1/   53  ls   54  python setup.py install   55  cd ..   56  ls   57  tar zxvf setuptools-1.1.6.tar.gz    58  cd setuptools-1.1.6/   59  ls   60  python setup.py install   61  cd ..   62  ls   63  cd pymssql-2.0.0b1-dev-20130403/   64  ls   65  python setup.py install   66  sudo apt-get install python-setuptools   67  cd ..   68  ls   69  easy_install pymssql-2.0.0b1_dev_20111018-py2.7-linux-x86_64.egg


BitsCN.com
Related Article

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.