[Guide] Executing SQL files faster - Importing DB faster menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Guide] Executing SQL files faster - Importing DB faster

    Well i see a lot of people use navicat or sqlyog or whatever to import big DBs... This can take verry long with SQL managers :-/
    How to make it faster? using a tool.bat !


    Code:
    @ECHO off
    REM ############################################################################
    REM #
    REM #      B A S I C   U S E R   C O N F I G U R A T I O N   A R E A
    REM #
    REM ############################################################################
    set user=root
    set pass=root
    REM  WorldDB  -  is the World Database
    REM If you do not have them seperated then set them to the same values
    set WorldDB=ncdb023
    REM ############################################################################
    REM #
    REM #    A D V A N C E D   U S E R   C O N F I G U R A T I O N   A R E A
    REM #
    REM ############################################################################
    set port=3306
    set server=localhost
    REM ############################################################################
    REM #
    REM #     D O   N O T   M O D I F Y   B E Y O N D   T H I S   P O I N T
    REM #
    REM ############################################################################
    if %user% == CHANGEME GOTO id10t
    if %pass% == CHANGEME GOTO id10t
    :menu
    cls
    ECHO.
    ECHO.
    ECHO        ####################################
    ECHO        #######      Latruwski       #######
    ECHO        ######       Database         ######
    ECHO        #######     Import Tool      #######
    ECHO         ########  www.mmowned.com   ########
    ECHO        ####################################
    ECHO.
    ECHO        Please type the letter for the option:
    ECHO.
    ECHO         w = Install Full-DB.sql
    ECHO.
    ECHO         Edited by latruwski - Modified from NCDB tool
    ECHO.
    ECHO.
    ECHO         x - Exit
    ECHO.
    set /p l=            Enter Letter:
    if %l%==* goto error
    if %l%==w goto world
    if %l%==W goto world
    if %l%==u goto update
    if %l%==U goto update
    if %l%==x goto quit
    if %l%==X goto quit
    goto error
    :world
    CLS
    ECHO.
    ECHO.
    ECHO [Importing] World database import Started...
    mysql -h %server% --user=%user% --password=%pass% --port=%port% %WorldDB% < Full-DB.sql
    ECHO [Importing] Finished
    ECHO.
    PAUSE    
    GOTO menu
    :update
    CLS
    ECHO.
    ECHO.
    ECHO [Importing] World database update Started...
    mysql -h %server% --user=%user% --password=%pass% --port=%port% %WorldDB% < Full-Update.sql
    ECHO [Importing] Updated Finished!
    ECHO.
    PAUSE    
    GOTO menu
    :error
    CLS
    ECHO.
    ECHO.
    ECHO [ERROR] An error has occured, you will be directed back to the
    ECHO [ERROR] main menu.
    PAUSE    
    GOTO menu
    :id10t
    CLS
    ECHO.
    ECHO.
    ECHO [FAILURE] You did not change the proper directives in this file.
    ECHO [FAILURE] Please edit this script and fill in the proper MYSQL Information.
    ECHO [FAILURE] When the information is correct: Please Try Again.
    PAUSE    
    GOTO quit  
    :quit
    this is basicly a modified version of NCDB tool...
    here is how to use:
    Copy this to notepad
    You need to change the green part to your Database information:

    set user=
    set pass=
    set WorldDB=
    to your DB username, password and WorldDB name

    If you run you database on localhost then you are done...
    Save this as a .bat file
    I zipped the tool.bat for localhost here:
    Filebeam - Free Fast File Hosting
    and you need to put this file in the same directory as Tool.bat:
    Filebeam - Free Fast File Hosting
    (unzip it first!)

    Here is the downloadlink for the 2 files in 1 link:
    Filebeam - Free Fast File Hosting

    note: this is a .bat file already, to edit the information inside just right click -> open with notepad
    just rename the SQL file with the DB to Full-DB.sql and execute tool.bat
    (make sure tool.bat, mysql.exe AND the Full-DB.sql are in the same folder )

    When the database is not hosted locally you need to change the red part also:

    set port=3306
    set server=localhost
    to the DB host information

    same thing to do here... rename the DB SQL file or Update SQL file to Full-DB.sql and execute tool.bat


    Why using tool.bat?
    You will notice with a bat file importing a DB goes WAY faster then using a SQL manager!
    Also it is easy to use!


    Important notes!
    -> Change the filename of the SQL file you wish to execute to "Full-DB.sql"
    -> You can also use this tool to import updates or other sql files
    -> All 3 files have to be in the same folder (tool.bat, mysql.exe and Full-DB.sql)

    Well i hope this helped to some people

    grtz
    Last edited by latruwski; 01-25-2008 at 06:43 AM.

    [Guide] Executing SQL files faster - Importing DB faster
  2. #2
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *bump*

    seriously you got to use this instead of waiting hours for a DB to be imported

    grtz

  3. #3
    Sonic Waffle's Avatar Contributor
    Reputation
    170
    Join Date
    Dec 2007
    Posts
    990
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, nice one man! +Rep


  4. #4
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by pigpoo View Post
    Ah, nice one man! +Rep
    thx, i hope a lot of people gonna start using bat files instead of sql manager to import a DB ^^

    grtz

  5. #5
    jokerjokes's Avatar Active Member
    Reputation
    75
    Join Date
    Apr 2007
    Posts
    902
    Thanks G/R
    3/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes i used the Ncdb One since i like there releases lol but gj man

  6. #6
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jokerjokes View Post
    Yes i used the Ncdb One since i like there releases lol but gj man
    yea but some people stil lkeep asking why it goes so slow with navicat ><
    i dont understand, if there is a guide section people should read it before asking questions :-/ i guess they are "too lazy?"

    grtz

  7. #7
    Netzgeist's Avatar Contributor
    Reputation
    144
    Join Date
    Jan 2008
    Posts
    353
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just lol'ed. Not cause the guide (the advice is ok), but of the fact that people still use windows as servers. Noones realising that its a pure waste of capabillities running a desktop enviroment on a server?

  8. #8
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by d0tc0m View Post
    Just lol'ed. Not cause the guide (the advice is ok), but of the fact that people still use windows as servers. Noones realising that its a pure waste of capabillities running a desktop enviroment on a server?
    yea but you can use bat files for external DBs also... and hell lot of people like to play on their own private server to be GM and mess arround ^^ not to make it public... (not always)

    grtz

  9. #9
    dcarz's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    57
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Theres no game if you havent got players on it, its much more funner when you can do events or make many custom stuff that people would like it...

  10. #10
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by dcarz View Post
    Theres no game if you havent got players on it, its much more funner when you can do events or make many custom stuff that people would like it...
    true but there are people who like to play on their own...
    and believe me when i say: hell lot of people wnt a private server for their own to test GM powers xD they think being GM is sooo imba lol

    grtz

  11. #11
    dcarz's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    57
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I played with
    GM powers for about 1 day,
    I saw whats good, ive been sucked bored, and then i started makin my server publick and custom and fun so that GM power would grow up....

    lol

  12. #12
    dcarz's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    57
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hay can you help me to make that I have good ideas how to make a good public server and how to make money grom it, would you help me, i would make you a moderator in my country , and i would share money with you (from the server),

    I ve tried to make it my own but it seems i need an emulator master.

    If youre interested post here or write me:

    E-mail -->
    [email protected]

    Skype ---> guzas15

    MSN --->
    [email protected]

  13. #13
    bill45's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    104
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is nice

  14. #14
    Darkhunter123's Avatar Member
    Reputation
    1
    Join Date
    Apr 2007
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    having a problem here when i start to run it it says

    [Importing] World database import Started...
    'mysql' is not recognized as an internal or external command,
    operable program or batch file.
    [Importing] Finished
    Press any key to continue . . .

  15. #15
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Darkhunter123 View Post
    having a problem here when i start to run it it says

    [Importing] World database import Started...
    'mysql' is not recognized as an internal or external command,
    operable program or batch file.
    [Importing] Finished
    Press any key to continue . . .
    yep i am sorry... i forgot to add something...
    unrar this file and put it in the same folder as tool.bat and Full-DB.sql:
    Filebeam - Free Fast File Hosting

    grtz

    edit: added new downloadlinks to the 1st post
    Last edited by latruwski; 01-25-2008 at 06:44 AM.

Page 1 of 2 12 LastLast

Similar Threads

  1. [GUIDE] ...How To Excute SQL FILES In To Your Database...
    By Followup in forum WoW EMU Guides & Tutorials
    Replies: 10
    Last Post: 08-01-2020, 08:04 AM
  2. Guide To quest much faster
    By jmng93 in forum World of Warcraft Guides
    Replies: 9
    Last Post: 01-13-2008, 12:56 PM
  3. How to Execute SQL Files To Your DB With Pictures
    By C.C. in forum WoW EMU Guides & Tutorials
    Replies: 5
    Last Post: 11-24-2007, 07:21 PM
  4. NCDB rev 662 (1 executeable SQL file)
    By Viter in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 11-23-2007, 11:56 AM
  5. Executing multiple SQL files at once
    By roguesownu in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 10-21-2007, 07:51 AM
All times are GMT -5. The time now is 02:40 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search