View Single Post

  #3 (permalink)  
Old 03-29-2008
Ana C. Dent
 
Posts: n/a
Default Re: mysql -u root -p db < script1.sql script2.sql

gert <gert.cuykens@gmail.com> wrote in news:060a4d3c-da05-42a0-8cbe-
726a8510eec1@s50g2000hsb.googlegroups.com:

> On 29 mrt, 04:41, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> You might be able to use
>>
>> mysql -u root -p db < script1.sql + script2.sql
>>

>
> Nope doesn't work, anyway i did some cat script2 >> script1 magic
>
> PS is there a way to change databases in a sql script ?
>


use newdatabase;
Reply With Quote