database.js 673 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. const mysql = require('knex')({
  2. "client": "mysql",
  3. "connection": {
  4. "host": "localhost",
  5. "port": 3306,
  6. "user": "root",
  7. "password": "1234",
  8. "database": "tonersales"
  9. }
  10. });
  11. /*
  12. const mysql = require('knex')({
  13. "client": "mysql",
  14. "connection": {
  15. "host": "localhost",
  16. "port": 32770,
  17. "user": "root",
  18. "password": "development",
  19. "database": "tonersales"
  20. }
  21. });
  22. //*/
  23. /*
  24. const mysql = require('knex')({
  25. "client": "mysql",
  26. "connection": {
  27. "host": "localhost",
  28. "port": 3306,
  29. "user": "root",
  30. "password": "development",
  31. "database": "tonersales",
  32. "charset" : 'utf8mb4'
  33. }
  34. });
  35. //*/
  36. module.exports = mysql;