# repair-mysql

> Repair and import old MySql databases from a non working MySql server.

Latest version **0.0.5** (published 2020-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install repair-mysql
pnpm add repair-mysql
yarn add repair-mysql
bun add repair-mysql
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2020-08-21 |
| First published | 2020-08-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 8.x |
| Dependencies | 5 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rehmat |
| Keywords | node, repair, mysql, import, old, move |

## Links

- npm: https://www.npmjs.com/package/repair-mysql
- Repository: https://github.com/animatedcreativity/repair-mysql
- Homepage: https://github.com/animatedcreativity/repair-mysql#readme
- Issues: https://github.com/animatedcreativity/repair-mysql/issues
- npm.io page: https://npm.io/package/repair-mysql

## Dependencies (5)

- [mysql](https://npm.io/package/mysql.md) ^2.18.1
- [express](https://npm.io/package/express.md) ^4.17.1
- [node-run-cmd](https://npm.io/package/node-run-cmd.md) ^1.0.1
- [node-file-config](https://npm.io/package/node-file-config.md) ^0.1.0
- [node-promise-wrapper](https://npm.io/package/node-promise-wrapper.md) 0.0.2

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2020-08-21
- 0.0.4 — 2020-08-11
- 0.0.3 — 2020-08-07
- 0.0.2 — 2020-08-07
- 0.0.1 — 2020-08-07

## README

# repair-mysql
Repairs old MySql database folder and migrates all databases to new MySql database folder. Very useful recovery tool if old MySql server is not working anymore OR you want to just copy OR move the databases.

You can even use it for backups or replicating databases among different servers.

### Sample config

```
{
  // source
  oldFolder: "/path/to/OLD/mysql/data/folder",
  // target
  newFolder: "/path/to/NEW/mysql/data/folder",
  host: "127.0.0.1",
  user: "root",
  password: "123456",
  port: 3306,
  mysqlUser: "mysql",
  /*
    curl -s http://get.dbsake.net > dbsake
    chmod u+x dbsake
  */
  workingFolder: "/path/where/dbsake/is/installed"
}
```

After changing config file just run `npm start`.

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