Skip to content

Instantly share code, notes, and snippets.

@conanak99
Created December 11, 2020 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save conanak99/631be255ea9a4cff8d704984e00e69e3 to your computer and use it in GitHub Desktop.
Save conanak99/631be255ea9a4cff8d704984e00e69e3 to your computer and use it in GitHub Desktop.
// Hard code DB Connection
const DB_CONNECTION = 'localhost://4090;username=hoangdeptrai;password=codedao'
// Magic number: 4 là gì, tại sao dùng 4 mà không phải số khác
DB.connect(DB_CONNECTION, 'db_codedao_blog', 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment