Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. ### Prerequisites
  2. 1. Install mysql: `scoop install mysql`
  3. 1. Add `Local` connection to PHPStorm using local MySQL container.
  4. 1. Create new DB in `Local` connection using the following command:
  5. `CREATE DATABASE local_db;`
  6.  
  7. ### Dump
  8. 1. Right click the schema you would like to export
  9. 1. Click on *Dump with 'mysqldump'*
  10. 1. In the *Path to mysqldump* field, put the following: `C:\dev\shims\mysqldump.exe`
  11. 1. Choose desired *Out Path*
  12. 1. Append the following flag to the auto-generated command in the text area (only if running MySQL >=5.0):
  13. `--column-statistics=0`
  14. 1. Click Run
  15.  
  16. ### Import Dump
  17. 1. Right click on the schema you created earlier in your local DB
  18. 1. Click *Restore with 'mysql'*
  19. 1. In the *Path to mysql* field, put the following: `C:\dev\shims\mysql.exe`
  20. 1. Point to the path of the dumped file
  21. 1. Click run and wait for the import to finish
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement