Database connection... MongoDB vs MySQL?
I was just wondering if anyone would know why it seems like almost every tutorial online uses MongoDB Atlas for using database connection when MySQL is debatably better when it comes to storing/accessing information on the scale that would be requried for a discord bot...
4 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!It’s really just personal preference, how you wanna use your data, etc. I personally use MySQL as it can be used in tons of other places where MongoDB is not as supported or supported at all - as SQL is more standard I’d say with big platforms.
I myself use SQLite and I’m pretty happy with it so far
SQLite is awesome for local host testing, and development - but in a production scale SQLite is not really ideal. You would be better off using MySQL or another SQL based database structure, like PostgreSQL.