Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

connect node server with knex database

const knex = require('knex')({
  client: 'mysql',
  connection: {
    host : '127.0.0.1',
    port : 3306,
    user : 'your_database_user',
    password : 'your_database_password',
    database : 'myapp_test'
  }
});
Source by knexjs.org #
 
PREVIOUS NEXT
Tagged: #connect #node #server #knex #database
ADD COMMENT
Topic
Name
2+7 =