mysql-health
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Installation

npm install mysql-health

Usage

TypeScript

import { healthCheckup } from 'mysql-health';

(async () => {
    const { isHealthy, error } = await healthCheckup({
        host: 'localhost',
        port: 3306,
        user: 'root',
        password: '',
    });

    // Successful case:
    //   true undefined
    // Error case:
    //   false 'Client does not support authentication protocol requested by server; consider upgrading MySQL client'
    console.log(isHealthy, error);
})();

Command line

npx mysql-health -h <host> -p <port> -u <user> -P <password>

Readme

Keywords

none

Package Sidebar

Install

npm i mysql-health

Weekly Downloads

0

Version

0.1.2

License

ISC

Unpacked Size

9.21 kB

Total Files

12

Last publish

Collaborators

  • wazho