Created
March 1, 2022 04:40
-
-
Save Aldhanekaa/70af623786845b781f77145ff86a7d6b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const conn = mysql.createConnection({ | |
| // for mac , disable it if you are on windows . | |
| socketPath: '/Applications/MAMP/tmp/mysql/mysql.sock', //path to mysql sock in MAMP | |
| host: process.env.sql_host, | |
| user: process.env.sql_user, | |
| password: process.env.sql_password, | |
| database: process.env.sql_db, | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment