Hi,
I am using MySQL 5.0 beta and Active Python 2.4. I have the correct
version of MySQLdb installed. The problem is that I can't connect to
MySQL through the Active Python interactive window.
Here is a sample error:
[color=blue][color=green][color=darkred]
>>> c=MySQLdb.Conne ct(host='localh ost',user='root ',passwd='',db= 'shop',port=330 6)[/color][/color][/color]
Traceback (most recent call last):
File "<interacti ve input>", line 1, in ?
File "C:\Python24\Li b\site-packages\MySQLd b\__init__.py", line 66, in
Connect
return Connection(*arg s, **kwargs)
File "C:\Python24\Li b\site-packages\MySQLd b\connections.p y", line
134, in __init__
super(Connectio n, self).__init__( *args, **kwargs2)
OperationalErro r: (2003, "Can't connect to MySQL server on 'localhost'
(10061)")
Please look at the penultimate line again. Here the self argument is
placed second to Connection argument. So I reversed their position. But
the problem persists.
Here is a sample:
[color=blue][color=green][color=darkred]
>>> c=MySQLdb.Conne ct(host='localh ost',user='root ',passwd='',db= 'shop',port=330 6)[/color][/color][/color]
Traceback (most recent call last):
File "<interacti ve input>", line 1, in ?
File "C:\Python24\Li b\site-packages\MySQLd b\__init__.py", line 66, in
Connect
return Connection(*arg s, **kwargs)
File "C:\Python24\Li b\site-packages\MySQLd b\connections.p y", line
134, in __init__MyM
super(self,Conn ection).__init_ _(*args, **kwargs2)
OperationalErro r: (2003, "Can't connect to MySQL server on 'localhost'
(10061)")
What is happening?
Thanks in advance for any help
Regards
Mondal
I am using MySQL 5.0 beta and Active Python 2.4. I have the correct
version of MySQLdb installed. The problem is that I can't connect to
MySQL through the Active Python interactive window.
Here is a sample error:
[color=blue][color=green][color=darkred]
>>> c=MySQLdb.Conne ct(host='localh ost',user='root ',passwd='',db= 'shop',port=330 6)[/color][/color][/color]
Traceback (most recent call last):
File "<interacti ve input>", line 1, in ?
File "C:\Python24\Li b\site-packages\MySQLd b\__init__.py", line 66, in
Connect
return Connection(*arg s, **kwargs)
File "C:\Python24\Li b\site-packages\MySQLd b\connections.p y", line
134, in __init__
super(Connectio n, self).__init__( *args, **kwargs2)
OperationalErro r: (2003, "Can't connect to MySQL server on 'localhost'
(10061)")
Please look at the penultimate line again. Here the self argument is
placed second to Connection argument. So I reversed their position. But
the problem persists.
Here is a sample:
[color=blue][color=green][color=darkred]
>>> c=MySQLdb.Conne ct(host='localh ost',user='root ',passwd='',db= 'shop',port=330 6)[/color][/color][/color]
Traceback (most recent call last):
File "<interacti ve input>", line 1, in ?
File "C:\Python24\Li b\site-packages\MySQLd b\__init__.py", line 66, in
Connect
return Connection(*arg s, **kwargs)
File "C:\Python24\Li b\site-packages\MySQLd b\connections.p y", line
134, in __init__MyM
super(self,Conn ection).__init_ _(*args, **kwargs2)
OperationalErro r: (2003, "Can't connect to MySQL server on 'localhost'
(10061)")
What is happening?
Thanks in advance for any help
Regards
Mondal
Comment