Skip to content

Commit

Permalink
⬆️ Upgrade mysql2@3.9.8 (fixes known bug)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvillaverde committed May 27, 2024
1 parent 7eea170 commit 56d36f9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ RADIOD scrapes content from RSS feeds from Blogs, Podcasts, Youtube Videos and a

### 🐛 Known Bugs

- [ ] When the MySQL database is restarted, `mysql2` library is getting ACCESS DENIED errors. The workarround its to login manually through the CLI and after that it can login without issues. Might be realated to `caching_sha2_password` auth plugin.
- [ ] Sometimes posts get promoted more than one time, something is duplicating messages in the MQTT Subscriber. QoS is zero for both publish and subscribe. Can't reproduce it so far, might be related to K8s networking.
- So far, all fixed! 🥳

### 🛣️ Roadmap

Expand Down
6 changes: 3 additions & 3 deletions deno.lock

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

8 changes: 7 additions & 1 deletion src/dev/mysql.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import mysql from "npm:mysql2";
import dbConfig from "../config/db.config.ts";
import logger from "../services/logger.service.ts";
// docker run -it -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=test -d mysql:8
const dbConfig = {
DB_HOST: "localhost",
DB_USER: "root",
DB_PASS: "test",
DB_NAME: "mysql",
};

const connection = mysql.createConnection({
host: dbConfig.DB_HOST,
Expand Down

0 comments on commit 56d36f9

Please sign in to comment.