网站地图    收藏   

主页 > 后端 > mysql数据库 >

ubuntu安装MYSQLDB, pymssql记录 - mysql数据库栏目 - 自

来源:自学PHP网    时间:2015-04-16 10:51 作者: 阅读:

[导读] ubuntu安装MYSQLDB, pymssql记录1 安装MYSQLDB9 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 t...

ubuntu安装MYSQLDB, pymssql记录
 
1. 安装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-dev
sudo apt-get install python-dev
python setup.py build
python setup.py install

 

 
2. 安装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

 


自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论