Guest User

Untitled

a guest
Nov 17th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. // ** MySQL settings ** //
  2. /** The name of the database for WordPress */
  3. define( 'DB_NAME', '<データベース名>' );
  4.  
  5. /** MySQL database username */
  6. define( 'DB_USER', '<ユーザー名>' );
  7.  
  8. /** MySQL database password */
  9. define( 'DB_PASSWORD', '<パスワード>' );
  10.  
  11. /** MySQL hostname */
  12. define( 'DB_HOST', '<xxx.xxx.jp>' );
  13.  
  14. /** Database Charset to use in creating database tables. */
  15. define( 'DB_CHARSET', 'utf8' );
  16.  
  17. /** The Database Collate type. Don't change this if in doubt. */
  18. define( 'DB_COLLATE', '' );
  19.  
  20. //app.js
  21.  
  22. const mysql = require('mysql');
  23. const connection = mysql.createConnection({
  24. host: '<xxx.xxx.jp>',
  25. user: '<ユーザー名>',
  26. password: '<パスワード>',
  27. database: '<データベース名>',
  28. //port : 3306
  29. });
  30. connection.connect((err) => {
  31. if (err) throw err;
  32. console.log('Connected!');
  33. });
Add Comment
Please, Sign In to add comment