python 2.6.6 mysqldb connect centos 6.3

yum groupinstall 'Development tools'
yum install python-setuptools
yum install unzip
yum install wget
yum install python-devel mysql-devel zlib-devel openssl-devel
wget --no-check-certificate https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.5.zip

unzip MySQL-python-1.2.5.zip

cd MySQL-python-1.2.5

[root@mail MySQL-python-1.2.5]# python setup.py build
running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-i686-2.6/MySQLdb
running build_ext
[root@mail MySQL-python-1.2.5]# echo $?

[root@mail MySQL-python-1.2.5]# python setup.py install

.
.
.
Adding MySQL-python 1.2.5 to easy-install.pth file

Installed /usr/lib/python2.6/site-packages/MySQL_python-1.2.5-py2.6-linux-i686.egg
Processing dependencies for MySQL-python==1.2.5
Finished processing dependencies for MySQL-python==1.2.5

#echo $?
0

No comments:

Post a Comment