Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ** MySQL settings ** //
- /** The name of the database for WordPress */
- define( 'DB_NAME', '<データベース名>' );
- /** MySQL database username */
- define( 'DB_USER', '<ユーザー名>' );
- /** MySQL database password */
- define( 'DB_PASSWORD', '<パスワード>' );
- /** MySQL hostname */
- define( 'DB_HOST', '<xxx.xxx.jp>' );
- /** Database Charset to use in creating database tables. */
- define( 'DB_CHARSET', 'utf8' );
- /** The Database Collate type. Don't change this if in doubt. */
- define( 'DB_COLLATE', '' );
- //app.js
- const mysql = require('mysql');
- const connection = mysql.createConnection({
- host: '<xxx.xxx.jp>',
- user: '<ユーザー名>',
- password: '<パスワード>',
- database: '<データベース名>',
- //port : 3306
- });
- connection.connect((err) => {
- if (err) throw err;
- console.log('Connected!');
- });
Add Comment
Please, Sign In to add comment