Code: Alles auswählen
MySQLdb.connect(db='idepot', host='localhost', passwd='xxx', user='root')
Code: Alles auswählen
OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)")
args = (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)")
Was könnte den Verbindungsfehler verursachen?? Gibt es bei Python/mySQL was besonderes zu beachten?
Danke