ã¨ããããã§ãã¾ããã ã§ãããã¼ï¼ åææ¡ä»¶ã¯åååæ§ãã®éãã åæï¼ â mysqlã®ãµã¼ãã¹ãlocalhostã§ãã¼ã3306ã§åãã¦ãã â¡ä½¿ç¨ããDBã¯test_db,åãåºããããã¼ãã«ã¯test_table â¢npmã§mysql,expressãã¤ã³ã¹ãã¼ã«æ¸ ä½ã¯ã¨ãããã½ã¼ã¹ã³ã¼ããã //app.js var app=express() var mysql = require('mysql'); var connection = mysql.createConnection({ host : 'localhost', //æ¥ç¶å ãã¹ã user : 'dbuser', //ã¦ã¼ã¶ã¼å password : 'password', //ãã¹ã¯ã¼ã database : 'test_db', //DBå port : 3306 //ãã¼ã,ããã©ã«ãã§ã3306 });
{{#tags}}- {{label}}
{{/tags}}