connect mysql database with python -


I'm very new to Python Python I need to connect MySQL databases with Python, I really like about it There is no information. I am using Python 1.7.

Tell me how to connect MySQL database to Python What settings do I need to fill the settings?

I've goggle it but I can not find the right answer, please tell me how to get it.

I have now what are the next steps for running this command?

  sudo apt-get install python-mysqldb  

I do not know more about this

Well you have just established the MySQL database interface for Python

pip freeze Be sure to run and see MySQL-Python == 1.2.5 .)

and your settings.py

  statistics = {'default'}: {'ENGINE': 'django.db. 'Root', 'HOST': 'localhost', 'port': '',}}  backend. MSQL ',' NAME ':' Your database name ',' USER ':' root ',' password ':' root '

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -