The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need Help Understanding DB Error..
Hey guys, I was wondering if you could help me out..
I'm moving one of my forums (VB 3.8.4) from one server to another. I exported the DB via phpmyadmin (about 500mb), and tried to import (also via phpmyadmin) to the new database on the new server. I get this message in phpmyadmin after about a half hour of importing: Code:
Error Static analysis: 2 errors were found during analysis. Variable name was expected. (near "<" at position 54) Unrecognized statement type. (near "div" at position 1) SQL query: <div class="error"><h1>Error</h1><p><strong>SQL query:</strong> <a href="db_sql.php?sql_query=SET+SQL_QUOTE_SHOW_CREATE+%3D+1&show_query=1&db=screamin_demo"><span class="nowrap"><img src="themes/dot.gif" title="Edit" alt="Edit" class="icon ic_b_edit" />  MySQL said: Documentation #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<div class="error"><h1>Error</h1><p><strong>SQL query:</strong> <a href="db_sql.' at line 1 Any help is greatly appreciated, thanks! |
#2
|
|||
|
|||
I wouldn't use PHPMyAdmin for exporting/importing large databases but use mysql/mysqldump to import and export databases. If you upload the .sql file to the server then your host should be able to import it properly if you don't know how to do it.
|
#3
|
|||
|
|||
How would I go about downloading a copy of the .sql file?
Thanks! |
#4
|
|||
|
|||
You could ask your host to dump your database on the old server -> download from old server -> upload to new server -> ask host to import the database dump.
|
#5
|
|||
|
|||
Ok thanks! So that's the best way? I kind of didn't want to involve the hosts at all, since they're kind of worthless. lol
|
#6
|
||||
|
||||
Quote:
1) Backup your 500MB .sql into .sql.gz via the Backup option in cPanel and restore your .sql.gz via your new cPanel. 2) An alternative: export your .sql via PHPMyAdmin, compress the sql in zip with winrar for example, rename the extension to .sql.zip and import with PhpMyAdmin via your new cPanel. |
#7
|
||||
|
||||
Quote:
https://www.fastwebhost.in/blog/putt...for-beginners/ |
#8
|
|||
|
|||
Thanks for all the help guys!
I ended up exporting it in phpmyadmin but ticked the 'use compression (.gz)' option this time, and it seems to have imported without a problem! Thanks again guys! |
Благодарность от: | ||
TheLastSuperman |
#9
|
||||
|
||||
I would use Adminer before PHPMyAdmin. I've had to many issues with it...
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|