Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mysql -uroot -pYourPassword -e "source C:tempfilename.SQL"
- mysql --user=root --password=YourPassword --execute="source C:tempfilename.SQL"
- get-content filename.sql -readcount 1000 |% {$_ | mysql -uroot database}
- $reader = [IO.File]::OpenText($filetoread)
- while ($reader.Peek() -ge 0) {
- $line = $reader.ReadLine()
- #do your thing here
- }
- $reader.Close()
- Get-Content .buTable.sql | mysql -uuser -ppassword destDatabase
Add Comment
Please, Sign In to add comment