Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2020
    Location
    Tampa, FL
    Posts
    15
    Plugin Contributions
    0

    Default Moving to a new server

    Yesterday morning I read posts for 3 hours. Last night I read posts for 2 hours. Most of what I read was older posts that appear not to work anymore. I have a cart running on server A for 15 years. I recently updated to 157C. I have over 3000 products fully set up, images, multiple attributes, etc. I need to move the database to the new server B. I have installed 157C on new server B. I have customized the pages that need that. I attempted to import the server A database into server B database and got an error about not authorized. Maybe db user name prefix is too blame. Can someone point me in a direction that will work in 157C?

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,281
    Plugin Contributions
    125

    Default Re: Moving to a new server

    Be sure the configure.php files on old vs new are identical for the fields starting with DB_.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,797
    Plugin Contributions
    17

    Default Re: Moving to a new server

    May also help (as discouraging as it may be to read) to identify the steps taken. Thought to ask just about the database transfer, but then realized that any steps along the way may be a cause. Of course the above may resolve the issue as well you will be the one to best identify.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,281
    Plugin Contributions
    125

    Default Re: Moving to a new server

    Also please note that there is a canonical answer to the question "how do I move to another server" in the help:

    https://docs.zen-cart.com/user/insta...change_hoster/
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    306
    Plugin Contributions
    6

    Default Re: Moving to a new server

    Quote Originally Posted by w9dkc View Post
    I attempted to import the server A database into server B database and got an error about not authorized.
    This is a long shot but I assume that you are using Linux. If you are trying to import using mysql -u USERNAME -p DATABASENAME <OLDDATAFILE.gz
    try using the --binary-mode switch eg mysql --binary mode -u USERNAME -p DATABASENAME <OLDDATAFILE.gz

    If that fails with the "not authorized" error try unzipping the database file first eg
    Code:
    gunzip OLDDATAFILE.sql.gz
    and import the resulting unzipped sql text file.

  6. #6
    Join Date
    Apr 2020
    Location
    Tampa, FL
    Posts
    15
    Plugin Contributions
    0

    Default Re: Moving to a new server

    So, I started over. I uploaded version 158 and installed it. Had a few bumps (forgot to use the db prefix and user prefix). I dumped the database except table 3 (Admin). I had already exported the other database leaving out table 3. I imported that. it worked. I then updated the database to 158. Everything works. I then uploaded my product and category images. It worked. Then uploaded my custom templates. It worked.
    I checked 4 hours ago and had 11 bots crawling.
    Already got some bad news from Bing - "The page contains 'noindex' directive either in a meta tag or HTTP header".
    somebody tell me where to look?

 

 

Similar Threads

  1. Replies: 1
    Last Post: 16 Mar 2012, 07:47 AM
  2. moving to a new server
    By kjharrison in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 15 Sep 2008, 01:41 AM
  3. Moving to a new server
    By snowy2008 in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 25 Jun 2008, 11:31 PM
  4. Moving to a new Server
    By jdimaging in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 30 Jan 2007, 04:34 AM
  5. Moving to new server
    By peak in forum General Questions
    Replies: 5
    Last Post: 3 Jun 2006, 02:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR