Get the book
Old 4th November 2009, 11:04 AM   #1
xavioremu
New Zenner
 
Join Date: Nov 2009
Posts: 7
Default Problem importing SQL file

Alright, here goes...

Im moving my zen cart to a new host. Ive carefully followed all the directions listed on http://tutorials.zen-cart.com/index.php?article=100 (to the best of my knowledge..) but every time I keep hitting a road block. I may be doing something wrong, but Im no pro at this which is why I came here .

Basically everything runs smooth until I get to the point where I need to import my SQL db. I have to use SSH to import it because the file is too large for phpmyadmin. Every time I try to import the file, I get this error:
Quote:
ERROR 1064 (42000) at line 1: 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 '' at line 1
I've tried using compatibility mode when exporting the file, tried importing the file on a mySQL 4 and 5 dbs (my host lets me choose which to use, the host the sites current at uses a version of 4), and I'm just not sure what the problem might be. I downloaded a program to make looking at the SQL file easier (then say, using notepad, lol), but tbh I had no real idea what I was looking for or looking at once I went to that line.

Any ideas?
xavioremu is offline   Reply With Quote
Old 4th November 2009, 12:15 PM   #2
tino.schlegel
Zen Follower
 
Join Date: Nov 2007
Posts: 275
Default Re: Problem importing SQL file

You can post line 1 of your exported sql file?

Maybe you can have a look for youself and see what is wrong with the exported file. Did you export a compressed file?
__________________
Visit Qacaq.com, your Online Jewelry Store in Malaysia .
tino.schlegel is offline   Reply With Quote
Old 4th November 2009, 01:54 PM   #3
xavioremu
New Zenner
 
Join Date: Nov 2009
Posts: 7
Default Re: Problem importing SQL file

Unless Im mistaken...this is all line 1 says (being viewed via ultraedit):

Quote:
-- phpMyAdmin SQL Dump
I have exported it as gzip, and also just as a uncompressed SQL file, but got he same results when trying to import it. Also both files have the same line 1..if as I said Im referring to the correct thing.


==============


Well..just as I was saying this..lol..I imported the file again as an uncompressed SQL file (rather then being gzipped) and it actually worked. Im sure ive done it before without success. I dunno, lol.
xavioremu is offline   Reply With Quote
Old 5th November 2009, 12:37 AM   #4
xavioremu
New Zenner
 
Join Date: Nov 2009
Posts: 7
Default Re: Problem importing SQL file

Now im having another problem that I had before.

So I finished all the steps in the guide, however my site doesn't look quite right. It shows our logo, one of our featured products, and thats about it. If I click on 'All Products' it lists 1 - 10 (of 70), however it should be more like 'of 1400'.

To make things easier, Ill just show you the differences:

Current Website: www.atlanticglassetching.com
New Host: http://s301575491.onlinehome.us/zentest/

I tried getting in to the admin section to see if I needed to manually fix anything there, however the login / pass isnt working, and neither is the password reset.
xavioremu is offline   Reply With Quote
Old 5th November 2009, 05:38 AM   #5
canopy
Zen Follower
 
canopy's Avatar
 
Join Date: Oct 2006
Posts: 484
Default Re: Problem importing SQL file

Are there any differences in table prefixes (e.g. 'zen_') you used between the two sites? If that is the case, you will need to adjust the following line in the 2 x configure.php files for your new site:

PHP Code:
define('DB_PREFIX''xxxxx'); 
__________________
Goh Koon Hoek

Author of "e-Start Your Web Store with Zen Cart".
Book Purchase Site: www.lulu.com/content/466605
Book Support Site: www.cucumbermedia.com
canopy is offline   Reply With Quote
Old 5th November 2009, 07:09 AM   #6
xavioremu
New Zenner
 
Join Date: Nov 2009
Posts: 7
Default Re: Problem importing SQL file

Thats already setup correctly since I setup a new install (same version) of zencart and saved the config files making sure not to replace them with the files from the old site.
xavioremu is offline   Reply With Quote
Old 5th November 2009, 07:27 AM   #7
xavioremu
New Zenner
 
Join Date: Nov 2009
Posts: 7
Default Re: Problem importing SQL file

Slight change, I was able to get in to the admin area by using this guide : http://tutorials.zen-cart.com/index.php?article=2

As you can also see on the website its not correctly listing the products or categories. Theres 1 featured product and it almost seems like thats the only thing thats showing up correctly ><. Is there any chance these problems are related to the fact that I imported the SQL db in to a MySQL 5 db rather then a 4 (as it came from a 4)? Im not sure what else might be causing these problems.
xavioremu is offline   Reply With Quote
Old 5th November 2009, 07:50 AM   #8
xavioremu
New Zenner
 
Join Date: Nov 2009
Posts: 7
Default Re: Problem importing SQL file

Sorry for all the posts...doesnt look like I can edit my posts here.

Anyway, tried switching to a MySQL 4 db in the meantime and there were no changes so far. Anyone have any other ideas? Thanks for all the help thus far :)
xavioremu is offline   Reply With Quote
Old 6th November 2009, 03:01 PM   #9
xavioremu
New Zenner
 
Join Date: Nov 2009
Posts: 7
Default Re: Problem importing SQL file

Is there any other files that link the db information to the files on your site? No products are found on the zen cart setup on the new host even though the config files are setup correctly and SQL file imported in to the db its setup for. Anyone know anything else that might cause this? I cant think of anything else to try
xavioremu is offline   Reply With Quote
Old 16th November 2009, 04:42 AM   #10
fajmp
New Zenner
 
fajmp's Avatar
 
Join Date: Jun 2008
Location: Canada
Posts: 54
Default Re: Problem importing SQL file

sorry to ######## in but I'm having the same problem as you...and can't find the answer.
I'm thinking of deleting all my customers and starting fresh but am scared to death to do it in case everything blows up or something.
I have customers that can sign in and some that can't with the error showing up. All because I changed websites...if I had known.
Did you ever solve it...it doesn't seem like it from your posts. No one answered my inquiries either for some reason. Perhaps it's simple and under my nose, but I'm a a loss.
fajmp is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing XlL or Text File Flux1231 General Questions 1 15th January 2009 05:20 PM


All times are GMT +1. The time now is 12:05 AM.

Learn tips, tricks & secrets for your Zen Cart™
Sign up for our FREE Newsletter

Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content and Graphics Copyright (c) 2006, 2007, 2008, 2009 Zen Ventures, LLC - all rights reserved
Get Zen Cart E-Commerce Shopping Cart at SourceForge.net. Fast, secure and Free Open Source software downloads