nomadexecutive.blogg.se

Mysqldb python 3 install
Mysqldb python 3 install













mysqldb python 3 install

Please feel free to use the comments form below if you have any questions or need more explanation on anything. rw-r-r- 1 root root 106932 Nov 4 11:49 MySQL_python-1.2.3-py2.7-linux-x86_64.eggĭid this tutorial help a little? How about buy me a cup of coffee? First check whether is it already installed or not: Python 1.5.2 (1, Feb 1 2000, 16:32:16) GCC egcs-2.91.

MYSQLDB PYTHON 3 INSTALL INSTALL

Default installation of Python may not contains MySQLdb Module, in that case you have to install it manually. The output looked like below on my machine: And found a cool example from devshed that shows connectivity using MySqLdb module. $ ls /opt/python/lib/python2.7/site-packages/ -la | grep MySQL That should install the MySQLdb module for your python installation. # /opt/python-2.7/bin/python setup.py install Mysql_config = /opt/mysql/bin/mysql_configĬtrl-O to save and Ctrl-X to exit out of nano and run the following on command line: You have to uncomment it and replace the path with path of mysql_config in your local machine. That should install MySQLdb module, but in case you get an error complaining about missing mysql_config, do the following inside MySQLdb unzipped folder (use your favorite text editor instead of nano, if you will):Īnd find the line that starts with something like the following:

mysqldb python 3 install

Python-3.0 will be supported in a future release. The design goals are: MySQL-3.23 through 5.5 and Python-2.4 through 2.7 are currently supported. pip install MySQL-python This command will install the legacy 1.2.x versions of mysqldb on your device. MySQLdb is an interface to the popular MySQL database server for Python. If you want to install the legacy version, here’s what you need to use. pip install mysqlclient This command installs the latest version of mysqldb on your device. # /opt/python/bin/python setup.py install The command to install mysqldb with the pip package manager in Python is given below. Also, $ before commands mean you can run the command as ordinary user and # means you have to run the command as root (or use $ sudo ). Please use md5 checksum to make sure the downloaded files are not corrupt.















Mysqldb python 3 install