Skip to content

Commit

Permalink
Switch from mysql to mysql2 for better database support (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz authored Dec 19, 2024
1 parent 79255f9 commit a69a072
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 67 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@

All notable changes to this project will be documented in this file, in reverse chronological order by release.

## 2.5 - TBD

### Added

- Nothing.

### Changed

- MySQL connections are now managed by the mysql2 driver instead of mysql for improved support/compatibility. If you use MySQL or MariaDB, be sure to change `mysql` to `mysql2` in your `api/vudl.ini` file!

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- Nothing.

## 2.4 - 2024-08-08

### Added
Expand Down
171 changes: 107 additions & 64 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"knex": "^2.4.2",
"locutus": "^2",
"morgan": "~1.9.1",
"mysql": "^2.18.1",
"mysql2": "^3.11.5",
"n3": "^1",
"nanoid": "^3.1.23",
"needle": "^2.6.0",
Expand Down
4 changes: 2 additions & 2 deletions api/vudl.ini.dist
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ admin_user = admin_password

# Database settings
[Database]
# Supported values: mysql, sqlite3
# Supported values: mysql2, sqlite3
client = sqlite3

# Database connection settings (required values vary based on client setting above)
[Database.connection]
# Required when client = sqlite3; filename of database, relative to api directory
filename = "./data/auth.sqlite3"
# Required when client = mysql
# Required when client = mysql2
# To set up a MySQL/MariaDB database, run these commands in the database client:
# create database vudl;
# create user 'your_database_user'@'localhost' identified by 'your_database_password';
Expand Down

0 comments on commit a69a072

Please sign in to comment.