Published onOctober 1, 2025Connecting to MySQL Database in Next.js v15 with mysql2 and bcryptjsNext.jsMySQLbcryptjsLearn how to connect to a MySQL database from your Next.js application using the `mysql2` package, and use `bcryptjs` for password hashing. This tutorial will guide you through creating a register page and login page.