Updated Preparation for update with database schema changes (markdown)

Aurora Lahtela 2022-04-10 09:41:51 +03:00
parent 74b9477c8b
commit 2430de8b43
1 changed files with 3 additions and 3 deletions

@ -29,14 +29,14 @@ Patching the database usually takes ~1 second per 20000 rows of data.
- Go to Plan plugin directory
- Make sure that `database.db-shm` and `database.db-wal` files are not present
- If they are the server didn't shut down properly, restart the server and stop it.
- Copy `database.db` to your Plan folder from your backup'
- Copy `database.db` to your Plan folder from your backup folder
</details>
### MySQL
- https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html
- `mysqldump [login options] <plan database name> > backup-plan-dump.sql`
- `mysqldump {login options} {plan database name} > backup-plan-dump.sql`
- Copy the dump file to your backup folder
@ -44,7 +44,7 @@ Patching the database usually takes ~1 second per 20000 rows of data.
<summary>How to restore if something goes wrong</summary>
- Login to mysql
- `mysql> drop database <broken plan database>;`
- `mysql> drop database {broken plan database};`
- `mysql> source /path/to/backup-plan-dump.sql`
</details>