The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
MySQL troubles
To cut a long story short; my site crashed and my sql back up didn't work.
I'm running vB 3.8.3, Apache 2.2.11, PHP 5.2.9-2 and MySQl 5.1.33 (which I downloaded as a WAMP bundle) and using MySQL Admin 5.1. I remote desktop to the machine, which is running Windows Server 2003. I've disabled all plugins by putting define('DISABLE_HOOKS', true); in my config. When I try a restore via MySQl Admin I get the following error; Quote:
I did manage to copy the info from mysql/data/schema-name and try that way, rather then an sql restore. However, I've noticed that this method gives 12 missing tables (there's a .frm file there but no corresponding .myd or .myi). These files/tables are;
Those missing tables gave me a DB error when I tried to view my forum home. I tried installed vb fresh, which works fine, and then did a sql backup of those 12 missing tables - importing them into my existing forum database. That allows me to access my forums and (seemingly) do all normal things, except those related to the missing tables. ------------ I have daily backups made via this mod, but MySQL Admin doesn't like it as it didn't originally make the back up. I don't know if they'd be any use anyway, given the above sql error. Is there any way I can;
I've been trying for days without really getting anywhere so any help would be greatly appreciated. Also, I don't really know anything about mysql, I've just been googling lots and trying different things mentioned, so if you could keep any possible advice noob-friendly that'd also help. |
#2
|
|||
|
|||
Do not restore the Custom Avatars table until last, as it stores large amounts of data, and can make your queries stop working, also use a script called bigdump http://www.ozerov.de/bigdump.php to import it to prevent memory overloads when trying to import large databases, as phpMyAdmin is limited by how much memory that PHP can use. This imports only a little at time and then moves on, making memory overloads rarely happen.
Anyway I hope this helps |
#3
|
||||
|
||||
Ouch, no way that you can use a Linux server, eh? If so, it'd be a lot easier to help ya. XD That's just because I'm more familiar with the commands.
Anyways, there's a few methods available to you. BigDump as described above by jchamber2010 is one I've surprisingly not heard of until now, but seems it's been around since 2003. Still, with a "0.29b" version, I think I'd stick with something a bit more well known. xP MySQL Dumper ( http://www.mysqldumper.de/en/ ) is what I use when I don't have shell access to servers, but I do have FTP access. (When I have shell access, I just execute the command-line statements to restore a database, but I honestly have no idea how to do that in Windows. I'm sure there's got to be a way, though, and that would probably be your BEST option.) |
#4
|
||||
|
||||
Quote:
As to the error, what is your wait_timeout set to in my.ini ? |
#5
|
|||||
|
|||||
Quote:
Quote:
----------------------------- Quote:
I tried the program you suggested, thanks. Unfortunately that gave an error of; Quote:
----------------------------- Quote:
Time out is set to 180 seconds, the error pops up after less than 10. Due to that, I assume this isn't the issue (or else it's be at least 180 seconds before the error)? ----------------------------- I tried downloading some sql editor thing, Apex and seeing if I could just delete the damn table from the backup. Unfortunately, I get a "System.OutOfMemoryException: Out of memory." error when trying to opn my SQL file in it. I can manage to open smaller SQL files, so I'm guessing it just crashes because it's too big a file for it to open . |
#6
|
|||
|
|||
Quote:
You need to install the "mysql commmand line client" for windows to use mysql like cmds to import a db into a winblowz server, its basically like ssh on a linux box, but in a dos window. then simply use your typical sql cmds to import the db. |
#7
|
||||
|
||||
Quote:
--------------- Added [DATE]1246136279[/DATE] at [TIME]1246136279[/TIME] --------------- Oh, poo, didn't see that you had a problem opening the backup file. Damn. Is there any way you could upload the backup file to a Linux server? Then you can just use the "head" command to print out the first line or two. --------------- Added [DATE]1246136781[/DATE] at [TIME]1246136781[/TIME] --------------- Oh, poo, didn't see that you had a problem opening the backup file. Damn. Is there any way you could upload the backup file to a Linux server? Then you can just use the "head" command to print out the first line or two. |
#8
|
|||
|
|||
I finally got it to work, with all the information .
I downloaded a program called PS Pad, which is a kinda like notepad++ except it can also read SQL (and doesn't suffer out of memory/file to big to open errors some other specialised sql editors do). I ran the SQL backup through MySQL Admin, getting the usual error message; Quote:
Thanks to everyone who tried to help . |
#9
|
||||
|
||||
Heh, great that you got it fixed.
And great that I was right--it was the backup. XD |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|