I'm using Wamp Server's MySQL. I had to change port from 80 to 8000 by setting "Listens" in httpd.conf and also in httpd-vhosts. I have access to phpMyAdmin by browser (localhost:8000/...) but when I'm trying to connect by program like this:
dbConn = MySQLdb.connect(host='192.168.1.110',port=8000, user='root', passwd='', db='test')
It freezes, and after exactly 60 seconds I'm getting error:
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2013, "Lost connection to MySQL server at 'reading initial communication packet', system error: 0")
Before port change it was working fine.
What should I do? Thanks in advance
EDIT:
It works when I change port to 3306 and uncomment line skip-grant-tables
in my.ini