Forums / Installing on a Linux/Unix Server / Trouble importing data

Trouble importing data

Locked

Started by isaacr25 on 13 Oct 2007, 11:20 PM · Views: 5,092

Results 21 to 28 of 28
This thread is locked. New replies are disabled.
15 Oct 2007, 6:11 PM
#21
isaacr25 avatar

isaacr25

Zen Follower

Join Date:
Jul 2007
Posts:
174
Plugin Contributions:
0

Trouble importing data

Dr Byte: It's not missing fields. It's skipping their data during exporting.

Let me rephrase: what if I enter values for the fields? And how would you explain the fact that the exported data threw errors during the import even after truncating the address book table? Thanks.

15 Oct 2007, 7:23 PM
#22
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Trouble importing data

isaacr25:

Dr Byte: It's not missing fields. It's skipping their data during exporting.

Let me rephrase: what if I enter values for the fields?You could try that for the address-book data.
isaacr25:

And how would you explain the fact that the exported data threw errors during the import even after truncating the address book table?Because it crashed later on your banners table ... seemingly for potentially similar reasons.

Why don't you try using the admin plugin for doing mysql backups and see if it generates a better backup?
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_41&products_id=81

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Oct 2007, 10:58 PM
#23
isaacr25 avatar

isaacr25

Zen Follower

Join Date:
Jul 2007
Posts:
174
Plugin Contributions:
0

Re: Trouble importing data

Here is the banners error:

#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 'Cart, 'http://www.zen-cart.com', banners/zencart_468_60_02.gif, Wide-Banners, ''' at line 2

Is there no option to restore the database? I dread calling the hosting company since I know I will get a run-around before anything is found.

16 Oct 2007, 3:34 AM
#24
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Trouble importing data

isaacr25:

Is there no option to restore the database?Yes -- with a working phpMyAdmin tool.
Or with the admin backup/restore plugin I mentioned in my last post.
Or with various other MySQL management tools you could purchase.

Your problem is that the tool intended to do the job isn't working properly. And the only one who can fix it is your hosting company, unless you try using alternate tools as suggested.

isaacr25:

I dread calling the hosting company since I know I will get a run-around before anything is found.Are you saying that you've had this problem for a couple days now, and even though we've been telling you to talk to your hosting company, you still haven't?

If they're that bad, find another.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Oct 2007, 4:47 PM
#25
isaacr25 avatar

isaacr25

Zen Follower

Join Date:
Jul 2007
Posts:
174
Plugin Contributions:
0

Re: Trouble importing data

I tried using the backup plugin tool, and when I imported the data into the new server, I got the following error. We also realized that the first server is running mySQL 5.0.24, and the destination server is running 4.1.21.

SQL query:

-- MySQL dump 10.10

-- Host: localhost Database: miramweb_jos


-- Server version 5.0.24
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;

MySQL said:

#1065 - Query was empty

16 Oct 2007, 9:58 PM
#26
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Trouble importing data

isaacr25:

We also realized that the first server is running mySQL 5.0.24, and the destination server is running 4.1.21.> MySQL said:

#1065 - Query was emptyVersion compatibility issues often create "query was empty" responses ... mostly because some of the query commands used don't exist in the older version you're trying to restore onto.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Oct 2007, 2:05 AM
#27
isaacr25 avatar

isaacr25

Zen Follower

Join Date:
Jul 2007
Posts:
174
Plugin Contributions:
0

Re: Trouble importing data

DrByte:

Version compatibility issues often create "query was empty" responses ... mostly because some of the query commands used don't exist in the older version you're trying to restore onto.

Makes sense. I'm looking at other hosts since Network Solutions won't change their db version from 4.1. My current version is 5.0.24. Do you think that migrating to db version 5.0.45 would be an issue? Thanks.

17 Oct 2007, 3:23 AM
#28
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Trouble importing data

Migrating from 5.0.x to 5.0.x should be easier than downgrading would be.

Talk to your new host (or prospective new hosts) about whether they'll assist you in the data-migration process. Many of the hosts on the hosting link at the top of this page will be glad to help you.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.