📜  与数据库交互 java 代码示例

📅  最后修改于: 2022-03-11 14:52:40.593000             🧑  作者: Mango

代码示例1
const mysql = require('mysql');

const con = mysql.createConnection({
  
  host: "localhost",
  user: "yourusername",
  password: "yourpassword"

  });

con.connect(function(err) {
  if (err) throw err;
  console.log("Connected!");
});