Socket
Socket
Sign inDemoInstall

health-check-mysql

Package Overview
Dependencies
17
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    health-check-mysql

Get the health of mysql infra


Version published
Maintainers
1
Install size
1.30 MB
Created

Readme

Source

Health Check Mssql

CI

Circle CI

Install

$ npm install health-check-mysql

Usage

var healthCheckMssql = require('health-check-mysql');

healthCheckMssql.do([
  {
    server: 'validServer',
    user: 'validUser',
    password: 'validPassword'
  },
  {
      server: 'invalidServer',
      user: 'invalidUser',
      password: 'invalidPassword'
    }])
  .then(function(result) {
    console.log(result);
    /* 
    { health: false,
      success: 1,
      error: 1,
      details: 
       [ { name: 'validServer',
                    health: true,
                    message: '' }, 
        { name: 'invalidServer',
           health: false,
           message: 'getaddrinfo ENOTFOUND invalidServer invalidServer:3306' } 
       ] 
    }
    */
  })
  .catch(function(error) {
    console.log(error);
  });

Keywords

FAQs

Last updated on 18 Dec 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc