You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During handling of the above exception, another exception occurred:
pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")
File "/home/Documents/git_clone/ChatDB/mysql.py", line 59, in execute_sql
self.conn.rollback()
AttributeError: 'NoneType' object has no attribute 'rollback'
The text was updated successfully, but these errors were encountered:
运行python chatdb.py后报错
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")
File "/home/Documents/git_clone/ChatDB/mysql.py", line 59, in execute_sql
self.conn.rollback()
AttributeError: 'NoneType' object has no attribute 'rollback'
The text was updated successfully, but these errors were encountered: