So I've installed mySQL on my XP box. So I created myself a user account and password and so I try connecting to my server.
Code:
import MySQLdb
# connect
db = MySQLdb.connect(host="localhost", user="solarbear", passwd="mypassword",db="mydb")
And so I receive the following very clear error.
OperationalError: (1045, "Access denied for user: 'solarbear@localhost' (Using password: YES)")
No need to tell you that my user name and password have both been checked thoroughly. Still, I can't seem to connect to it, even though I'm prefectly able to operate in command line.

What could cause this error ?