GithubHelp home page GithubHelp logo

easymysql's People

Contributors

aleafs avatar fengmk2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easymysql's Issues

自定义hbsql

可以支持更多实现mysql协议的数据库, 如garuda

Access denied for user 'root'@'localhost' (using password: YES)的问题

我想问一下数据库的连接是没问题的。默认的密码在安装mysql时候就有设置,而且通过命令行也可以登录到数据库,在node里按照你们的规范写就会报错,问题应该出在数据库连接。跳过密码就能登录数据库。不知道这是什么原因。希望您能解答谢谢
// mysql的接入
'use strict';
const express = require('express');
const router = express.Router();

// var mysql = require('mysql');
// var connection = mysql.createConnection({
// host : 'localhost',
// user : 'root',
// password : 'wangdi',
// database : 'wangdi'
// });

var Client = require('easymysql');
var mysql = Client.create({
'maxconnections' : 10
})
mysql.addserver({
'host' : '127.0.0.1',
'user' : 'root',
'password' : 'root',
'database' : 'wangdi'
});
mysql.addserver({
'host' : '127.0.0.1',
'user' : 'root',
'password' : 'root',
'database' : 'wangdi'

});

sql异常的时候,需要将完整sql打印出来。

线上遇到sql异常,可是看异常信息无法找到对应的sql。

而且因为是异步调用,堆栈信息已经无法跟踪,需要有sql才能知道是那里出问题了

2013-04-27 17:29:23.851 nodejs.MysqlErrorException: Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY a.id DESC LIMIT 0, 50' at line 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.