I have a client logging device on a RPi trying to connect to a MySQL server on another RPi (192.168.2.204) and failing:
pi@RPi0w-Logger:~ $ sudo python envirologremote.py Traceback (most recent call last): File "envirologremote.py", line 7, in conn=MySQLdb.connect(host="192.168.2.204",user="jim",passwd="xxxxxxxxx",db="EnviroLogger") File "/usr/lib/python2.7/dist-packages/MySQLdb/init.py", line 81, in Connect return Connection(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in init super(Connection, self).init(*args, **kwargs2) _mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL server on '192.168.2.204' (111)")
I can connect to the server using PHPMySQL using the same creds, so the server is working and available.
I can connect to a server running locally on the client RPi.
I've been reading various articles on the subject. They seem to home in on a binding option, but they're all over the place on the location and name of the configuration file. I've made sure anywhere I could find a configuration file that it says "bind=0.0.0.0", but nothing changes, even after I reboot.
How do I troubleshoot this?
jim@localhost
you also need to grant permissions forjim@remotehost
– derpirscherbind-address
and disableskip-networking
– derpirscher