# pomelo-mysql-data-plugin

> pomelo-mysql-data-plugin

Latest version **0.0.5** (published 2025-05-27) · 0 weekly downloads

## Install

```sh
npm install pomelo-mysql-data-plugin
pnpm add pomelo-mysql-data-plugin
yarn add pomelo-mysql-data-plugin
bun add pomelo-mysql-data-plugin
```

## Health

**Score 20/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2025-05-27 |
| First published | 2022-04-11 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | gaozhanyong |

## Links

- npm: https://www.npmjs.com/package/pomelo-mysql-data-plugin
- Repository: https://github.com/gaozhanyong/pomelo-mydata-data-plugin
- Homepage: https://github.com/gaozhanyong/pomelo-mydata-data-plugin#readme
- Issues: https://github.com/gaozhanyong/pomelo-mydata-data-plugin/issues
- npm.io page: https://npm.io/package/pomelo-mysql-data-plugin

## Dependencies (2)

- [mysql2](https://npm.io/package/mysql2.md) ^3.14.1
- [sequelize](https://npm.io/package/sequelize.md) ^6.37.7

## Recent versions

- 0.0.5 (latest) — 2025-05-27
- 0.0.3 — 2023-10-17
- 0.0.2 — 2023-10-16
- 0.0.1 — 2022-04-11

## README

pomelo-mysql-data-plugin

forked from pomelo-data-plugin

using mysql as a data source

Config data plugin for Pomelo(a fast,scalable,distributed game server framework for Node.js. http://pomelo.netease.com), it can be used in Pomelo(>=0.7.0).


##Installation

```
npm install pomelo-mysql-data-plugin
```

##Usage

```
var dataPlugin = require('pomelo-mysql-data-plugin');
var mysqlConfig = {
  "dialect": "mysql",
  "host": "127.0.0.1",
  "port": "3306",
  "database": "test",
  "username": "test",
  "password": "test"
};
... ...
app.use(mysqlDataPlugin, {
    watcher: {
      idx: 'id',
      interval: 60000,
      dbConfig: mysqlConfig,
      tables: ['npc_config', 'task_config']
    }
  });
... ...
... ...
var npcConf = app.get('mysqlDataService').get('npc_config');
... ...
... ...
```

---
_Source: https://npm.io/package/pomelo-mysql-data-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
