https://github.com/faforever/faf-db-dump
https://github.com/faforever/faf-db-dump
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/faforever/faf-db-dump
- Owner: FAForever
- Created: 2017-05-11T19:30:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-25T10:09:53.000Z (over 2 years ago)
- Last Synced: 2025-02-16T08:17:38.944Z (over 1 year ago)
- Size: 21.3 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.adoc
Awesome Lists containing this project
README
# FAForever database dump
In this repository you find an anonymized excerpt of the FAF production database (dump.sql) and scripts to generate
it from a copy (!) of the production database (sanitize.sql).
It's main use is to verify database migrations against at least partially real world data.
## Sanitize
If you run a sanitize query, please note the loop inside the SQL! Manual work is required!
## Dump
If you imported the production database using a faf-db from faf-stack you may run
`docker exec -i -u root faf-db mysqldump -u root -p --single-transaction faf_lobby > dump.sql`
Afterwards you need to edit the dump.sql:
* replace faf_lobby with faf
* replace all `SQL SECURITY DEFINER` to +DEFINER=`root`@`%`+ (otherwise Schemaspy will break)