Skip to content

No reconnection after connection lost #431

@vodolaz095

Description

@vodolaz095

I use nodeJS 0.10.1 on heroku hosting with mysql 2.0.0 alfa7 and i work with ClearDB mysql database.

I connect to database like this

var MYSQLConnection = require('mysql').createConnection('mysql://b453496a28495a:SECRET@us-cdbr-east-03.cleardb.com/heroku_1a4a27e1f6bed85?reconnect=true');

I try to reconnect after connection lost like there and it doen's works
https://github.com/felixge/node-mysql#server-disconnects

what am i doing wrong?

Affter losing connection i can't reconnect with code you have provided

Regards, Anatoly

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions