i am finally starting with python. i wanted to ask if i use the mysql db with python, how should i expect python to connect to the db? what i mean is, i have mysql installed in xampp and have my database created in mysql through php myadmin. now my python is in C:\python25\ and my *.py files would be in the same folder as well. now do i need any prior configuration for the connection?
what i am doing now
>>> cnx = MySQLdb.connect(host=’localhost’, user=’root’, passwd=’’, db=’tablename’)
SyntaxError: invalid syntax
how do i need to go around this?