Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access to a MySQL database

Status
Not open for further replies.

Wulf

Programmer
Nov 30, 2000
9
AT
I tried to get access to a MySQL database like this:

import MySQLdb

db = MySQLdb.connect(db = 'mydb', user = 'user', passwd = 'password')

I get this error:
Traceback (most recent call last):
File "Myfile.py", line 3, in ?
db = MySQLdb.connect(db = 'mydb', user = 'user', passwd = 'password')
File "/usr/local/lib/python1.6/site-packages/MySQLdb.py", line 457, in __init__
i = map(int, split(split(self._server_info, '-')[0], '.'))
ValueError: invalid literal for int(): 26a
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top