MajekDev / HexNicks

Nickname plugin with hex color code and gradient support.
MIT License
27 stars 15 forks source link

MySQL autoReconnect=true database URL conflict #39

Closed willymv closed 2 years ago

willymv commented 2 years ago

Describe the bug When trying to add '?autoReconnect=true&' as an option after the database name, it conflicts with the already existing '?useSSL=false'.

The error shown is Malformed database URL, failed to parse the connection string near '?useSSL=false'.

Currently there is no way to remove the '?' and there is still an error if the '&' is removed after '?autoReconnect=true'

To Reproduce Steps to reproduce the behavior:

  1. Add '?autoReconnect=true&' after your database name in the config file.
  2. Turn on the server
  3. Read errors that show while HexNicks loads.

Expected behavior HexNicks successfully connects to the Database with the additional setting.

Software (please complete the following information):

Additional context Discussed in Discord, just added this here as requested.

Majekdor commented 2 years ago

Fixed in this commit. There's now an option in the config with the other MySQL options.