PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Installation & Upgrades

Classifieds Installation & Upgrades If you're having install or upgrade problems, post here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old June 23rd, 2005, 03:17 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Oct 2004
Posts: 40
database error when moving site

I'm moving my site from its current webhost to a new host (the new host is doing the move). The classifieds and forum (vb3) were functioning okay before I temporarily closed them while the site is being moved. They both use the same database. The new host sent me the following email:


We have transferred all the files. We also backed-up the database ****Forum in .sql file. But while restoring this backup we are getting following error.
------------------------------------
ERROR 1064 at line 13: 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 'DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci' at line
-------------------------------------
As this is a syntax error you will have to make changes to your database accordingly. Please do the necessary changes and upload the .sql file for the same to public_html folder. We will restore it for you. Please let us know when you finish.

What do I need to do to fix this so I can complete the move and reinstate my website?

Thank you.
izan is offline   Reply With Quote
Old June 23rd, 2005, 11:27 PM   #2 (permalink)
Registered User
 
Join Date: Apr 2005
Posts: 148
What version of MySQL does your old host use?
What version of MySQL does your new host use?
Frost is offline   Reply With Quote
Old June 24th, 2005, 07:31 AM   #3 (permalink)
Senior Member
 
Join Date: Mar 2003
Posts: 1,296
hi..

Sounds like the backup could be slightly corrupted, i would upload the .sql file to your new host in ASCII then advise your new host to install it, they may find an error, so you could try this yourself via phpmyadmin or via a cron command (if your host has cron features) if you find the line number of where the syntax error is you could open the sql file yourself via a text editor and edit the line or comment it out and re-upload it, i know this may a problem for the proper functioning of both apps but it's an option

see a guide for cron (restore database) below
---
Hi..

If you have a large .sql database to restore (over 10 megs for example) you can do this via your cpanel and cronjobs.

your host hasn't enabled shell access, and your phpmyadmin will only allow you to upload a few megs...so what to do?

Create a directory outside of your 'public_html' dir (in this example i'm gonna call my directory 'backup')

Upload your .sql database file to that 'backup' dir

Goto your cpanel > cronjobs

and simply type in this command :
---------------------------------
Code:
Content visible to verified customers only.
---------------------------------

You may be different to me in the '/home2/' section
and remember you have to have an exsiting database to restore into.... do this via cpanel > mysqldatabases (remember the name used for the command above database_name

uploadfile.sql change the name to YOUR upload sql file

and thats it..

-T
b6gm6n is offline   Reply With Quote
Old June 24th, 2005, 08:22 AM   #4 (permalink)
Registered User
 
Join Date: Apr 2005
Posts: 148
Maybe it'd be better to read this and this to see if there is a backwards compatibility issue before looking for corruption.
Frost is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Pictures to new database kevinrstruck Photopost Pro How Do I...? 2 April 8th, 2005 12:16 PM
Moving Database to a New Server BobHarbison Photopost Pro How Do I...? 3 March 23rd, 2005 10:40 AM
Moving site to new server...what should I look for when moving Photopost? zerinS4 Photopost Pro Installation & Upgrades 5 February 14th, 2005 08:56 AM
Moving Photopost to New Server - how to move database didjiman Photopost Pro Installation & Upgrades 3 August 29th, 2004 07:29 PM


All times are GMT -5. The time now is 02:28 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0