Import a backup SQL file menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Sandile's Avatar Member
    Reputation
    32
    Join Date
    Aug 2008
    Posts
    314
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Import a backup SQL file

    Recently my DB got ****ed up somehow, (It got deleted). As the whole DB got deleted mysql stop working because the necessary DB (mysql) was also deleted. So I had to reinstall Mysql and get a new DB. Now of course I made some backups of the DB so my work wouldn't just be removed. But my world backup is around 260mb and I can't find any way to import a file of that size. The DB was dumped by Navicat if that helps.
    I have tried some script called bigdump but the file is still to big for it. I have tried some mysql program called mysqladministrator. I have tried phpmyadmin. I have tried SQLyog. Neither of these worked. So if anyone out there got any way to import huuuuuge sql files into a db, please share...

    Red = bad
    "i downloaded it in "pirates bay", can you tell me how to download it in steam, pls"

    Import a backup SQL file
  2. #2
    Algorithm's Avatar Member
    Reputation
    175
    Join Date
    Mar 2008
    Posts
    395
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change that in my.ini in MYSQL folder

    [mysqld]
    max_allowed_packet=200M <-----

  3. #3
    Sandile's Avatar Member
    Reputation
    32
    Join Date
    Aug 2008
    Posts
    314
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, its not that the data is to big. No program can handle a SQL file that big. The program freezes. I have already changed max allowed packet.

    What program do you use when you are importing your world db backup? (asking everyone)
    "i downloaded it in "pirates bay", can you tell me how to download it in steam, pls"

  4. #4
    Dythzer's Avatar Contributor
    Reputation
    271
    Join Date
    May 2008
    Posts
    461
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you actually tried using the MySQL CLI? GUIs like navicat are just useful for quick and small edits in db tables, not for importing or dumping databases (unless they are really small or if you like huge files).

    In windows: start mysql cli/console, type your password and then:
    use <database>
    source <path to file>

    Example:
    use mangos
    source "C:\Backup.sql"

  5. #5
    Algorithm's Avatar Member
    Reputation
    175
    Join Date
    Mar 2008
    Posts
    395
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Sandile View Post
    No, its not that the data is to big. No program can handle a SQL file that big. The program freezes. I have already changed max allowed packet.

    What program do you use when you are importing your world db backup? (asking everyone)
    lol.... my character database is 1.5 GB ... and i never ever had any problems importing it.

    And i use Heidi SQL or Sqlyog Ent

  6. #6
    Sandile's Avatar Member
    Reputation
    32
    Join Date
    Aug 2008
    Posts
    314
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Dythzer View Post
    Have you actually tried using the MySQL CLI? GUIs like navicat are just useful for quick and small edits in db tables, not for importing or dumping databases (unless they are really small or if you like huge files).

    In windows: start mysql cli/console, type your password and then:
    use <database>
    source <path to file>

    Example:
    use mangos
    source "C:\Backup.sql"
    Tried to do that. I wrote
    start mysql cli/console in my command shell and it poped up a new window that instantly closed down. I could see what the text was by repetedly poping up the window the text was:

    Code:
    Error 1049 [4200]: Unknown Database cli/console
    Do I need to download something called Mysql cli or what? and by mysql cli do you mean mysql client? because that one is abit ****ed up.
    I'm just gona restart my comp to check if something happends.
    "i downloaded it in "pirates bay", can you tell me how to download it in steam, pls"

  7. #7
    Dythzer's Avatar Contributor
    Reputation
    271
    Join Date
    May 2008
    Posts
    461
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Sandile View Post
    Do I need to download something called Mysql cli or what? and by mysql cli do you mean mysql client? because that one is abit ****ed up.
    I'm just gona restart my comp to check if something happends.
    MySQL CLI = Command Line Interface, the console where you type all commands.

    In case you don't know how to start it, open up the start menu and then go to "All programs -> MySQL -> MySQL Server 5.x -> MySQL Command Line Client" if you're using XP.
    In vista/windows 7, just type "mysql" in the searchbox and you will see it.

  8. #8
    Sandile's Avatar Member
    Reputation
    32
    Join Date
    Aug 2008
    Posts
    314
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay I finally got it to work. After like 15 tries. Thank you very much for your help. +Rep
    Last edited by Sandile; 04-28-2009 at 02:58 PM.
    "i downloaded it in "pirates bay", can you tell me how to download it in steam, pls"

Similar Threads

  1. [Guide] Executing SQL files faster - Importing DB faster
    By latruwski in forum WoW EMU Guides & Tutorials
    Replies: 16
    Last Post: 01-25-2008, 01:01 PM
  2. 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
  3. SQL file not working help please
    By n7e7b7 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 09-22-2007, 10:40 PM
  4. Exporting custom vendor to a sql file?
    By Seldom in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 09-04-2007, 03:19 PM
  5. Requesting Lots Of New Weapons And Armor In Sql Files :p
    By heijheija in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 08-25-2007, 06:10 PM
All times are GMT -5. The time now is 02:10 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search