{"size": 294, "ext": "js", "max_stars_repo_path": "management-serve/routes/database/connect.js", "max_stars_repo_name": "bscwdg/warehouse-management-system", "max_stars_repo_stars_event_min_datetime": "2021-08-17T19:08:25.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-17T19:08:25.000Z", "max_issues_repo_path": "management-serve/routes/database/connect.js", "max_issues_repo_name": "bscwdg/warehouse-management-system", "max_issues_repo_issues_event_min_datetime": "2022-02-27T06:22:14.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T06:22:14.000Z", "max_forks_repo_path": "management-serve/routes/database/connect.js", "max_forks_repo_name": "bscwdg/warehouse-management-system", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 16.3333333333, "max_line_length": 37, "alphanum_fraction": 0.6428571429}
// 引入模块 
const mysql = require('mysql')
		
// 创建连接对象
const conn = mysql.createConnection({
	host: 'localhost',
	user: 'root',   // 数据库用户名
	password: 'root', // 数据库密码
	database: 'management'   // 数据库的名字
})
		
// 连接
conn.connect()

console.log('database is coonect')

// 导出
module.exports = conn;