One SQL Injection Full Database

Post Reply
WiiStream

One SQL Injection Full Database

Post by WiiStream » Thu Aug 01, 2013 12:36 am

This is full database one file injection. Installing the database takes for ever doing it one by one this way much faster.

This is for Rev 3890
Attachments
darkstar_full_db.rar
Full Database For Rev 3890
(1.82 MiB) Downloaded 170 times
FileMerge.rar
Use This To Select The Sql Folder and then rename the text out put to Darkstar_Full_DB.sql
(851.58 KiB) Downloaded 182 times

lautan
Developer
Posts: 164
Joined: Mon Jul 30, 2012 6:17 pm

Re: One SQL Injection Full Database

Post by lautan » Thu Aug 01, 2013 8:45 am

I don't recommend running this. This will get out of date fast and will cause potential bugs / crashes. I remember seeing a batch script that runs all updated sql files.

User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Re: One SQL Injection Full Database

Post by atom0s » Thu Aug 01, 2013 4:39 pm

Code: Select all

@ECHO OFF
REM =============================================================================
REM =============================================================================
REM ======                                                              =========
REM ====== THis script will drop the DB specificed, then create the DB  =========
REM ====== specified, and then load all .sql tables from its run dir to =========
REM ====== the the DB.                                                  =========
REM ======                                                              =========
REM ====== File needs to be run from within the \dsp\sql folder (same   =========
REM ====== folder with all the .sql files. Please edit as needed. By    =========
REM ====== default it WILL DROP the standard dspdb DB, loosing all      =========
REM ====== accounts and characters. If this is not desired, then update =========
REM ====== the file to load the new DB into a new DB name.              =========
REM ======                                                              =========
REM ====== Update -p with MySQL password. If you password is 'foo',     =========
REM ====== then change '-pMYSQLPASS' to '-pfoo' (3 places).             =========
REM ======                                                              =========
REM ====== If you want to use a different database name, change 'dspdb' =========
REM ====== with a database name of your choosing.                       =========
REM ======                                                              =========
REM =============================================================================
REM =============================================================================
REM ======                                                              =========
REM ====== by Thrydwolf 9/8/2012                                        =========
REM ====== Updated with status by bluekirby0 3/30/2012                  =========
REM ====== Updated by Thrydwolf 9/18/2012                               =========
REM ======                                                              =========
REM =============================================================================
REM =============================================================================

ECHO Creating Database dspdb
mysqladmin -h localhost -u root -pPASSWORD_HERE DROP dspdb

ECHO Creating Database dspdb
mysqladmin -h localhost -u root -pPASSWORD_HERE CREATE dspdb

ECHO Loading dspdb with tables
REM FOR %%X IN (*.sql) DO mysql dspdb -h localhost -u root -pPASSWORD_HERE < %%X
FOR %%X IN (*.sql) DO ECHO Importing %%X & mysql dspdb -h localhost -u root -pPASSWORD_HERE < %%X

ECHO Finished!
Save as a batch in the sql folder. Edit the name/pass/port as needed in all the spots.

User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Re: One SQL Injection Full Database

Post by atom0s » Sat Aug 24, 2013 3:32 pm

Moved to committed since it is not really something that will be added as it is not needed/wanted.

Post Reply