Dec-20-2016, 06:01 PM
Ok then i have been playing around with mysql.connector today and i keep getting an error when calling
cursor = cnx.cursor()This is the error that i keep getting i have looked a little online but don't understand enough to fix anything.
Error:OperationalError Traceback (most recent call last)
<ipython-input-6-23c84600e42c> in <module>()
----> 1 cursor = cnx.cursor()
/home/Elliott/Documents/ana/lib/python3.5/site-packages/mysql/connector/connection.py in cursor(self, buffered, raw, prepared, cursor_class, dictionary, named_tuple)
1381 raise errors.InternalError("Unread result found.")
1382 if not self.is_connected():
-> 1383 raise errors.OperationalError("MySQL Connection not available.")
1384 if cursor_class is not None:
1385 if not issubclass(cursor_class, CursorBase):
OperationalError: MySQL Connection not available.