Ho installato MySQL 5.0 :
*Tutto a posto!!

Ho installato MySQLdb per poter interagire con python :
*Tutto a posto!!

Problema : ho provato a fare i primi esercizi di connessione con il db e ho giĆ  incontrato i primi problemi, se scrivo sulla shell di python queste istruzioni incontro i seguenti errori : (sembra che abbia problemi con i parametri che gli passo, ma sono giusti!!ho anche provato con il costruttore connect vuto ma niente)

import MySQLdb <-- fino a qui nessun errore

Con = MySQLdb.Connect(host="127.0.0.1",port=3306,user="geo",passwd="",db="pippo") <-- dopo questa istruzione mi dice questo!! perche?

Traceback (most recent call last):
File "<pyshell#1>", line 1, in -toplevel-
Con = MySQLdb.Connect(host="127.0.0.1",port=3306,user="geo",passwd="",db="pippo") File "C:\Python24\Lib\site-packages\MySQLdb\__init__.py", line 74, in Connect
return Connection(*args, **kwargs)
File "C:\Python24\Lib\site-packages\MySQLdb\connections.py", line 164, in __init__
super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (1045, "Access denied for user 'geo'@'localhost' (using password: NO)")

Ho provato anche solo a scrivere :

con = MySQLdb.connect() <-- ma incontro comunque questi errori!!

Traceback (most recent call last):
File "<pyshell#2>", line 1, in -toplevel-
con = MySQLdb.connect()
File "C:\Python24\Lib\site-packages\MySQLdb\__init__.py", line 74, in Connect
return Connection(*args, **kwargs)
File "C:\Python24\Lib\site-packages\MySQLdb\connections.py", line 164, in __init__
super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (1045, "Access denied for user 'ODBC'@'localhost' (using password: NO)")

_________________________________________________________________
Cerchi un campeggio per le tue vacanze? http://search.msn.it/results.aspx?q=campeggio&FORM=MSNH&CP=1252&srch_type=0

_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a