#๐Ÿ”’ MySQL Table does not exist error, but it does exist

8 messages ยท Page 1 of 1 (latest)

gilded gale
#

just like the title says

    def load_logs(self):
        try:
            
            query = "SELECT timestamp, level, message FROM logs ORDER BY timestamp DESC"
            self.cursor.execute(query)
            logs = self.cursor.fetchall()

            for log in logs:
                self.log_treeview.insert('', 'end', values=log)

        except db.Error as e:
            print(f"Error loading logs: {e}")
toxic lilyBOT
#

@gilded gale

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

gilded gale
#

I'm trying to implement a logs query where the admin triggers an event that lists their actions but for some reason the logs doesn't display

#

it's trying to look for "MYDB.logs"

gilded gale
#

if there's any information i need to provide please let me know ๐Ÿ™

finite quest
#

did you create a table called logs?

toxic lilyBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.