DEV Community

Discussion on: A crash course on Serverless with AWS - Building APIs with Lambda and Aurora Serverless

Collapse
 
jmhorn profile image
John Horn

Had the same exact issue and as someone with a mac with no mysql installed this was the solution for me. Remember a local instance of mysql needs to still be available.

Install mysql locally

brew install mysql

Start MySQL

mysql.server start OR service mysqld start

Make change to user auth

Per stack overflow need to edit password auth

mysql -u root
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'

mysql -u root -p
"password"

Make sure to change the db.js DB_PASSWORD

db.js
"DB_PASSWORD": "password"

and voila it worked for me