Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2013, 08:12 PM
Stabones
Fire Beetle
 
Join Date: Oct 2013
Location: United States
Posts: 17
Default Windows: Sourcing SQL Files

So, there are a lot of files to source...

source a.sql
source b.sql

...


source zz.sql

No thanks.

For future sourcing, use:

Code:
copy /b *.sql all_files.sql
This will take all .sql files in the directory and concatenate them into one. Want to pick and choose what to source? Select all .sql files you are interested in, copy them to a temp folder, and then run the copy command above!

Stabones
Reply With Quote
  #2  
Old 10-02-2013, 08:25 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 966
Default

There are like two things to source.
Reply With Quote
  #3  
Old 10-02-2013, 08:31 PM
Stabones
Fire Beetle
 
Join Date: Oct 2013
Location: United States
Posts: 17
Default

Not when you do proper source control
Reply With Quote
  #4  
Old 10-02-2013, 08:42 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,743
Default

for %i in (*.sql) do mysql -uroot -ppassword peq < %i
Reply With Quote
  #5  
Old 10-02-2013, 10:18 PM
Stabones
Fire Beetle
 
Join Date: Oct 2013
Location: United States
Posts: 17
Default

Quote:
Originally Posted by lerxst2112 View Post
for %i in (*.sql) do mysql -uroot -ppassword peq < %i
Always good to see other solutions.

Cheers!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:24 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3