The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Database Error
I'm hoping to move to a VPS and the tech team at my new host have been attempting to restore my existing database but are continuously finding a database error created by :-
Code:
'<br /> How can I run a query to locate the '<br /> within the database ? Thanks guys |
#2
|
|||
|
|||
You're probably going to find <br/> all over the place, actually. In the native format of templates and the cached page text from posts, etc, etc. If the import is failing though, they should be able to identify the particular insert statement that caused the failure though. I'm presuming this is coming from a mysqldump, of course, and not that it has been exported to a flat file. Once you have the exact error and the offending insert statement, that would give us enough information to help you identify what row in which table is causing the problem.
|
#3
|
|||
|
|||
Sounds like a character collation issue if they cant import the db because of the br tags.
|
#4
|
|||
|
|||
Its not a <br /> problem .. notice the hyphen '<br />
|
#5
|
|||
|
|||
Well, if there is an apostrphe in your data, it is most certainly escaped when being exported using the mysqldump. My previous statement stands. You need to find what row and what table this error is being caused on. They should be able to tell you that.
|
#6
|
||||
|
||||
If that was the case wouldn't almost all database dumps and restores fail as most have ' in them?
|
#7
|
|||
|
|||
Tried again last night and techs report :-
Quote:
|
#8
|
||||
|
||||
You need to increase your max execution time in php.ini
Also backingup/restoring databases via a web browser isn't recommended. You should use SSH when possible |
#9
|
|||
|
|||
The only reliable method of backing up and restoring a database is with shell access via telnet or ssh. This is because backing up with a PHP script like that in the Admin CP or phpMyAdmin can result in PHP timeouts errors and an incomplete backup file. Please see the instructions here:
Backup: http://www.vbulletin.com/docs/html/m...nce_ssh_backup Restore: http://www.vbulletin.com/docs/html/m...ce_ssh_restore P.S. If you don't have shell access, some people have also reported success with these scripts: MySQLDumper: http://www.mysqldumper.de/en/index.php MySQLHotxcopy: http://www.vbulletin.com/forum/showt...t=mysqlhotcopy Bigdump: http://www.ozerov.de/bigdump.php |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|