Guest User

Untitled

a guest
Jun 30th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. @echo off
  2.  
  3. REM This file relies on the existence of C:\my.ini with the following contents
  4. REM [client]
  5. REM user=[username]
  6. REM password=[password]
  7.  
  8. REM Ask user for dbname
  9. SET /p dbname="Database Name: "
  10.  
  11. REM drop and recreate database
  12. mysql -e "drop database %dbname%;"
  13. mysql -e "create database %dbname%;"
  14.  
  15. REM Load the database from previous dump
  16. mysql %dbname% < C:\Users\chowell\Documents\RentManager\DatabaseScripts\0template.sql
  17.  
  18. REM Apply my modifications
  19. mysql %dbname% < C:\Users\chowell\Documents\RentManager\DatabaseScripts\0mymods.sql
Add Comment
Please, Sign In to add comment