Logo Logo
  • Home
  • Services
  • Blog
  • Contact
  • Home
  • Services
  • Blog
  • Contact

Database connection between python & mysql

  • zendnwar
  • November 29, 2015
  • Python
  • 0 Comments

#!/usr/bin/python
import MySQLdb
db = MySQLdb.connect(“localhost”,”user”,”password”,”dbname” )
cursor = db.cursor()

Related Posts

How to check python version ?

  • admin
  • April 9, 2017

python -V ..

Python List Comprehensions

  • zendnwar
  • March 17, 2016

>>> sqr = >>> for i in range(10): sqr.append(i**2) >>> sqr 0, 1, 4, ..

Previous post

What are the Best SEO techniques to use in 2015?

Next post

what is active partition?

Recent Posts

  • How to Create Admin User via Command Line in Magento 2
  • How design a Jenkins setup for a large-scale enterprise application with multiple teams?
  • How to run Elasticsearch on localhost?
  • How to install Jenkins?
  • What are the important features of Memcached?

Categories

  • .htaccess
  • Advanced PHP(OOP
  • AngularJS
  • Bangladesh Tourism
  • Cakephp
  • DevOps
  • Drupal
  • HTML
  • HTML5
  • Jquery
  • Linux
  • Magento
  • Magento 2
  • NoSQL
  • Others
  • PHP Basic
  • Python
  • R
  • SEO
  • SQL
  • System Administration
  • UI & UX
  • Uncategorized
  • Website
  • Word Press
  • Zend basic

Shall we have a chat?

If you have a project or collaboration that you would like to discuss with us, or if you are curious to hear more about how we can help you, we look forward to hearing from you.

  • borntowinanwar@gmail.com
  • +880 1716 471039

Copyright & Design By  @ Zendanwar  – 2024

Facebook-f Youtube Linkedin-in