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