Topic Author
Posts: 10
Joined: 02 Apr 2019, 23:14

Connecting the RevPi to a remote database

14 Jun 2019, 20:48


I am trying to connect the RevPi to a remote database. I have run this code to connect to a local database and it works. I have also run it on a VM and it makes the connection. Here is the error message:

Traceback (most recent call last):
File "", line 9, in <module>
db = MySQLdb.connect(server, username0,password0)
File "/usr/lib/python2.7/dist-packages/MySQLdb/", line 81, in Connect
return Connection(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/MySQLdb/", line 187, in __init__
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.InterfaceError: (-1, 'error totally whack'

Any ideas?

Who is online

Users browsing this forum: No registered users and 0 guests