vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Database Error (https://vborg.vbsupport.ru/showthread.php?t=180722)

Internetcafe 05-27-2008 08:45 PM

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 />
I've checked all templates and removed a couple of places I found the '<br /> .. re-submitted the database for restore but the error continues to create a problem.

How can I run a query to locate the '<br /> within the database ?

Thanks guys

Farcaster 05-27-2008 09:33 PM

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.

snakes1100 05-27-2008 10:02 PM

Sounds like a character collation issue if they cant import the db because of the br tags.

Internetcafe 05-27-2008 10:47 PM

Its not a <br /> problem .. notice the hyphen '<br />

Farcaster 05-28-2008 01:21 AM

Quote:

Originally Posted by Internetcafe (Post 1533498)
Its not a <br /> problem .. notice the hyphen '<br />

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.

SEOvB 05-28-2008 03:17 AM

Quote:

Originally Posted by Farcaster (Post 1533627)
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.

If that was the case wouldn't almost all database dumps and restores fail as most have ' in them?

Internetcafe 05-28-2008 08:49 AM

Tried again last night and techs report :-

Quote:

ERROR 1064 (42000) at line 252033: 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 '<br /> <b>Fatal error</b>: Maximum execution time of 30 seconds exceeded in <b>' at line 1
Grrrrrr

SEOvB 05-28-2008 09:18 AM

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

Marco van Herwaarden 05-28-2008 10:12 AM

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


All times are GMT. The time now is 06:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01137 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete