Python Forum
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attendence System
#10
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.
Reply


Messages In This Thread
Attendence System - by elliott0184 - Dec-12-2016, 03:21 PM
RE: Attendence System - by nilamo - Dec-12-2016, 05:11 PM
RE: Attendence System - by micseydel - Dec-12-2016, 09:25 PM
RE: Attendence System - by elliott0184 - Dec-12-2016, 10:04 PM
RE: Attendence System - by nilamo - Dec-12-2016, 11:21 PM
RE: Attendence System - by elliott0184 - Dec-13-2016, 09:43 AM
RE: Attendence System - by nilamo - Dec-13-2016, 05:20 PM
RE: Attendence System - by elliott0184 - Dec-14-2016, 10:05 AM
RE: Attendence System - by DennisT - Dec-14-2016, 09:38 PM
RE: Attendence System - by elliott0184 - Dec-20-2016, 06:01 PM
RE: Attendence System - by nilamo - Dec-20-2016, 06:13 PM
RE: Attendence System - by elliott0184 - Dec-20-2016, 06:22 PM
RE: Attendence System - by wavic - Dec-20-2016, 06:30 PM
RE: Attendence System - by elliott0184 - Dec-20-2016, 06:30 PM
RE: Attendence System - by nilamo - Dec-20-2016, 06:41 PM
RE: Attendence System - by elliott0184 - Dec-21-2016, 01:11 PM
RE: Attendence System - by Larz60+ - Dec-21-2016, 01:36 PM
RE: Attendence System - by elliott0184 - Dec-21-2016, 01:47 PM
RE: Attendence System - by elliott0184 - Dec-21-2016, 06:27 PM
RE: Attendence System - by elliott0184 - Feb-21-2017, 03:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Difference between os.system("clear") and os.system("cls") chmsrohit 7 16,779 Jan-11-2021, 06:30 PM
Last Post: ykumar34
Question Difference between Python's os.system and Perl's system command Agile741 13 6,981 Dec-02-2019, 04:41 PM
Last Post: Agile741

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020