Skip to content

Commit

Permalink
Merge pull request #269 from AdobeDocs/jh_import-feedback
Browse files Browse the repository at this point in the history
Feedback on import command
  • Loading branch information
jhadobe authored and GitHub Enterprise committed Jul 23, 2024
2 parents 3bac9d0 + ae7eb6a commit 78bc775
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions help/cloud-guide/deploy/staging-production.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ When importing data, you must drop and create a database.
create database main;
```

1. Import the database.

Import for Production:

```shell
Expand All @@ -345,3 +347,5 @@ When importing data, you must drop and create a database.
```shell
zcat <cluster-ID_stg>.sql.gz | sed -e 's/DEFINER[ ]*=[ ]*[^*]*\*/\*/' | mysql -h 127.0.0.1 -p -u <database-username> <database-name>;
```

These commands decompress the database dump file, remove the `DEFINER` statements, and import the database using the specified credentials.

0 comments on commit 78bc775

Please sign in to comment.