daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Jun 30th, 2018 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top