How to connect Python to MySql ?

Discussion in 'Programming' started by ziya, Apr 21, 2010.

  1. #1
    Any python developers ? How can I connect python to MySql database ?

    Thanks
     
    ziya, Apr 21, 2010 IP
  2. Vontage

    Vontage Peon

    Messages:
    141
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need the Python MySQL API. I guess you find it on the mysql site.
    Here is how you do, from memory :
    You can also declare a specific "cursor" I think, like by doing x = a.cursor()

    If you need helped reply below.
     
    Vontage, Apr 22, 2010 IP
  3. newiam

    newiam Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Nice job vontage.
    Thanks , worked for me
     
    newiam, Apr 25, 2010 IP