#TypeError i.connect is not a function mysql2

5 messages · Page 1 of 1 (latest)

silent kelp
#

looks like you're trying to do it in browser. You can't connect to db in browser

sly heron
#

Also, uh, since you deployed this, consider your db credentials invalid now, do whatever you must so that no one can access your database with the credentials

upbeat jewel
#

because I know on localhost can't push/insert in db.
How do you know this is the case?

sly heron
#

As your credentials have been leaked to client side

upbeat jewel