
April 24th, 2004, 09:02 PM
|
 |
onCsdfeu
|
|
Join Date: Jul 2003
Location: Canada
Posts: 100
Time spent in forums: 2 h 7 m 43 sec
Reputation Power: 6
|
|
|
mySQL connection error
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.
Quote: | 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 ?
__________________
Time is the greatest of teachers ; sadly, it kills all of its students.
- Hector Berlioz
|