Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors Connecting to MySQL database #15

Open
bsmojoman opened this issue May 12, 2023 · 0 comments
Open

Errors Connecting to MySQL database #15

bsmojoman opened this issue May 12, 2023 · 0 comments

Comments

@bsmojoman
Copy link

I'm getting errors from the tool connecting to the MySQL database. This is connected to the current open issue regarding installation.

  1. Running MUD-PD on Ubuntu 22.04
  2. I'm running mysql for the database and followed the install instructions.
  3. I can remote app connect to the database with MySQL Workbench.

I'm running the latest clone from May 11, 2023.

When attempting to connect to the database:
[mysql]
host = localhost
databse = mudResearch
user = netbom

When attempting to connect to the database during the setup I get:

2023-05-12 15:29:25,891 - stderr - CRITICAL - Exception in Tkinter callback
2023-05-12 15:29:25,892 - stderr - CRITICAL - Traceback (most recent call last):
2023-05-12 15:29:25,892 - stderr - CRITICAL - File "/usr/lib/python3.10/tkinter/init.py", line 1921, in call
2023-05-12 15:29:25,892 - stderr - CRITICAL - return self.func(*args)
2023-05-12 15:29:25,892 - stderr - CRITICAL - File "/home/ait/github_tools/MUD-PD/mudpd.py", line 590, in connect_and_close
2023-05-12 15:29:25,892 - stderr - CRITICAL - db_handler_temp.db_connect(self.db_cnx_entries)
2023-05-12 15:29:25,892 - stderr - CRITICAL - File "/home/ait/github_tools/MUD-PD/mudpd.py", line 3980, in db_connect
2023-05-12 15:29:25,892 - stderr - CRITICAL - self.db = CaptureDatabase(self.db_config)
2023-05-12 15:29:25,892 - stderr - CRITICAL - File "/home/ait/github_tools/MUD-PD/src/capture_database.py", line 605, in init
2023-05-12 15:29:25,892 - stderr - CRITICAL - self.cursor = self.cnx.cursor(buffered=True)
2023-05-12 15:29:25,892 - stderr - CRITICAL - AttributeError: 'CaptureDatabase' object has no attribute 'cnx'

If you have any suggestions - it would be most appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant