Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    62
    Plugin Contributions
    0

    Default error message says database 'address book' doesn't exist

    this is the error I get, although when I do a complete check on the database, everything says it's ok. But now here's the error:

    1146 Table 'hojpub.address_book' doesn't exist

    What am I missing?

    Thanks for your help.

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

    Default Re: error message says database 'address book' doesn't exist

    Do all of the tables have the prefix "hojpub." ??
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2006
    Posts
    62
    Plugin Contributions
    0

    Default Re: error message says database 'address book' doesn't exist

    I don't think so. When installing zencart i left the field blank where it asked for a prefix. how would I check that and fix it?

    Thanks for helping a newbie :)

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: error message says database 'address book' doesn't exist

    If you have phpmyadmin or equivalent, you can view the tables and table names for this DB. They should all either have a prefix or all not have one.

    Then based upon wht you find you can rename the least # of them so that they match.

    It appears that your configure.php file is set to look for a prefix owing to the error stating:
    Code:
    1146 Table 'hojpub.address_book' doesn't exist
    This can be edited to what ever you found and corrected to in the DB in the configure.php files(includes and admin/includes):
    Code:
    // define our database connection
      define('DB_TYPE', 'mysql');
      define('DB_PREFIX', 'zen_');
    Zen-Venom Get Bitten

  5. #5
    Join Date
    May 2006
    Posts
    62
    Plugin Contributions
    0

    Default Re: error message says database 'address book' doesn't exist

    Thanks so much, I'll give it a try!

  6. #6
    Join Date
    May 2006
    Posts
    62
    Plugin Contributions
    0

    Default Re: error message says database 'address book' doesn't exist

    Well, I've done something to mess it up. Here's what I get when importing the database into the new one on the new server....

    SQL query:

    CREATE TABLE `address_book` (
    `address_book_id` int( 11 ) NOT NULL AUTO_INCREMENT ,
    `customers_id` int( 11 ) NOT NULL default '0',
    `entry_gender` char( 1 ) NOT NULL default '',
    `entry_company` varchar( 32 ) default NULL ,
    `entry_firstname` varchar( 32 ) NOT NULL default '',
    `entry_lastname` varchar( 32 ) NOT NULL default '',
    `entry_street_address` varchar( 64 ) NOT NULL default '',
    `entry_suburb` varchar( 32 ) default NULL ,
    `entry_postcode` varchar( 10 ) NOT NULL default '',
    `entry_city` varchar( 32 ) NOT NULL default '',
    `entry_state` varchar( 32 ) default NULL ,
    `entry_country_id` int( 11 ) NOT NULL default '0',
    `entry_zone_id` int( 11 ) NOT NULL default '0',
    PRIMARY KEY ( `address_book_id` ) ,
    KEY `idx_address_book_customers_id_zen` ( `customers_id` )
    ) ENGINE = MYISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT =2;

    MySQL said: Documentation
    #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 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=2' at line 17

    ****************************************
    additionally, when using this database with zencart 3.1.7, I get this message when trying to create a customer account:


    1146 Table 'hojpub.address_book' doesn't exist
    in:
    [INSERT INTO address_book (customers_id, entry_firstname, entry_lastname, entry_street_address, entry_postcode, entry_city, entry_country_id, entry_gender, entry_company, entry_suburb, entry_zone_id, entry_state) VALUES ('1', 'adfad', 'adsfadf', '13321 adfadf', '91306', 'aadsfad', '223', 'm', '', '', '12', '')]

    I'm sure I've overlooked something very simply, although I followed all the directions for moving from one sever to another.

 

 

Similar Threads

  1. v139d Error message -- #1146 - Table 'classyca_poscheap.admin' doesn't exist
    By wwwursa in forum Customization from the Admin
    Replies: 1
    Last Post: 8 Sep 2013, 06:12 PM
  2. Database Error: 'ezpages_content' doesn't exist
    By inteltronics in forum Upgrading to 1.5.x
    Replies: 9
    Last Post: 14 Oct 2012, 02:29 PM
  3. Replies: 7
    Last Post: 18 Jul 2007, 05:09 PM
  4. says my cache folder doesn't exist in [db_cache table]
    By kateoeight in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 19 Apr 2007, 03:21 PM

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