Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Mar 2013
    Location
    Sydney, Australia
    Posts
    140
    Plugin Contributions
    0

    Default Error 1044 when moving database to new server

    I am moving a site to a new server.
    My old server had a prefix of kinectwe_ and the new server has a prefix of cashexch_ . Also my sql backup file (from old server) is called kinectwe_ingleburncashexchange.sql .
    I am following these instructions https://www.zen-cart.com/content.php...fferent-server
    I have followed all steps ok, however when I get to step 5D (import into database) I encounter a 1044 error:
    --
    -- Database: `kinectwe_ingleburncashexchange`
    --
    CREATE DATABASE IF NOT EXISTS `kinectwe_ingleburncashexchange` DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci;


    MySQL said: Documentation

    #1044 - Access denied for user 'cashexch'@'localhost' to database 'kinectwe_ingleburncashexchange'

    In step 2a it says: IMPORTANT: when asked about the database-table-prefix during Database-Setup, use the same prefix that your old store uses.
    I have this in my includes/configure.php and admin/includes/configure.php. Did I do that correctly?

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'kinectwe');
    define('DB_CHARSET', 'utf8');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'cashexch_ice');
    define('DB_SERVER_PASSWORD', 'XXXXX');
    define('DB_DATABASE', 'cashexch_ingleburncashexchange');
    Last edited by Ajeh; 19 Jan 2016 at 03:56 AM.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Error 1044 when moving database to new server

    I am supposing that you have created a database already - if not do so in the account control panel

    Then if your backup has the "CREATE DATABASE IF NOT EXISTS" function enabled
    Create another backup without it

    Then use phpmyadmin to import the backup into the DB you have created
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2013
    Location
    Sydney, Australia
    Posts
    140
    Plugin Contributions
    0

    Default Re: Error 1044 when moving database to new server

    Quote Originally Posted by kobra View Post
    I am supposing that you have created a database already - if not do so in the account control panel

    Then if your backup has the "CREATE DATABASE IF NOT EXISTS" function enabled
    Create another backup without it

    Then use phpmyadmin to import the backup into the DB you have created
    Hi Kobra,
    I have created a database via the CP.
    I just did another sql backup without CREATE DATABASE checkmarked and it uploaded. But now I'm getting an 0071 error !!!
    http://www.zen-cart.com/content.php?...ce-is-required
    So now I'm trying to sort that one out.

  4. #4
    Join Date
    Mar 2013
    Location
    Sydney, Australia
    Posts
    140
    Plugin Contributions
    0

    Default Re: Error 1044 when moving database to new server

    Quote Originally Posted by Annie_zaz View Post
    Hi Kobra,
    I have created a database via the CP.
    I just did another sql backup without CREATE DATABASE checkmarked and it uploaded. But now I'm getting an 0071 error !!!
    http://www.zen-cart.com/content.php?...ce-is-required
    So now I'm trying to sort that one out.
    Kobra, do you think I should change all instances of cashexch_ to kinectwe_ in the configure files?

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Error 1044 when moving database to new server

    To manually figure out the correct prefix to use, look at the database using phpMyAdmin and see what common 2-4 letter prefix starts all the tablenames.
    Check using phpmyadmin that tables do exist and what the prefix actually is
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Mar 2013
    Location
    Sydney, Australia
    Posts
    140
    Plugin Contributions
    0

    Default Re: Error 1044 when moving database to new server

    Quote Originally Posted by kobra View Post
    Check using phpmyadmin that tables do exist and what the prefix actually is
    I have cashexch_ I presume that's the table name?
    The full name is cashexch_ingleburncashexchange

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Error 1044 when moving database to new server

    I would also suggest changing your database password as soon as you can ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Mar 2013
    Location
    Sydney, Australia
    Posts
    140
    Plugin Contributions
    0

    Default Re: Error 1044 when moving database to new server

    Quote Originally Posted by Ajeh View Post
    I would also suggest changing your database password as soon as you can ...
    Thanks I will do that now.

  9. #9
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Error 1044 when moving database to new server

    Quote Originally Posted by Annie_zaz View Post
    I have cashexch_ I presume that's the table name?
    The full name is cashexch_ingleburncashexchange
    There is a difference between a prefix for the database name and the prefix that is prepended to "every" table within the database... Following kobra's suggestion, if you look at the first table in the database or at the sql that was uploaded, do you have a table named admin or one that has something before the word admin? Also how many tables are there? Somewhere around 100? Or 200? Or more?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Mar 2013
    Location
    Sydney, Australia
    Posts
    140
    Plugin Contributions
    0

    Default Re: Error 1044 when moving database to new server

    I ended up making the site work. I still don't know what was wrong, maybe a table or configure.php file thing.
    But what I did to correct it was upload a zc_install and reinstall it using the files from the old site and voila it worked.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Error 1044 when importing DATABASE
    By Mthirty5 in forum Installing on a Windows Server
    Replies: 11
    Last Post: 9 Jan 2016, 04:27 PM
  2. Moving to new site different server & database name
    By rufusclc in forum General Questions
    Replies: 4
    Last Post: 24 Mar 2009, 08:05 PM
  3. cart not working when moving to a new server
    By webdev316 in forum General Questions
    Replies: 4
    Last Post: 30 Oct 2008, 03:35 AM
  4. Problems when moving to a new server
    By Moncia in forum General Questions
    Replies: 3
    Last Post: 15 Sep 2007, 04:20 AM
  5. error when moving to a new server
    By fright-rags in forum General Questions
    Replies: 17
    Last Post: 25 Jun 2007, 05:16 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