Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2005
    Location
    Helena, MT
    Posts
    118
    Plugin Contributions
    0

    Default trying to create new database

    I did a backup of current database, trying to create the tables on a new server.

    Error
    SQL query:

    #
    # Table structure for table 'configuration'
    #
    CREATE TABLE configuration(

    configuration_id INT( 11 ) AUTO_INCREMENT ,
    configuration_title TEXT,
    configuration_key VARCHAR( 255 ) DEFAULT '',
    configuration_value TEXT,
    configuration_description TEXT,
    configuration_group_id INT( 11 ) DEFAULT '0',
    sort_order INT( 5 ) ,
    last_modified DATETIME,
    date_added DATETIME DEFAULT '0001-01-01 00:00:00',
    use_function TEXT,
    set_function TEXT,
    PRIMARY KEY ( configuration_id ) ,
    UNIQUE unq_config_key_zen( configuration_key ) ,
    KEY idx_key_value_zen( configuration_key, configuration_value ) ,
    KEY idx_cfg_grp_id_zen( configuration_group_id )
    );

    MySQL said:

    #1170 - BLOB/TEXT column 'configuration_value' used in key specification without a key length

    I have no idea, it creates 9 tables then hits this error and fails

    this is zen cart version 1.3.8
    and mysql v. 5.0

  2. #2
    Join Date
    Oct 2005
    Location
    Helena, MT
    Posts
    118
    Plugin Contributions
    0

    Default Re: trying to create new database

    HEre's another one:

    Error
    SQL query:

    #
    # Dumping data for table 'customers_basket'
    #
    #
    # Table structure for table 'customers_basket_attributes'
    #
    CREATE TABLE customers_basket_attributes(

    customers_basket_attributes_id INT( 11 ) AUTO_INCREMENT ,
    customers_id INT( 11 ) DEFAULT '0',
    products_id TINYTEXT,
    products_options_id VARCHAR( 64 ) DEFAULT '0',
    products_options_value_id INT( 11 ) DEFAULT '0',
    products_options_value_text BLOB,
    products_options_sort_order TEXT,
    PRIMARY KEY ( customers_basket_attributes_id ) ,
    KEY idx_cust_id_prod_id_zen( customers_id, products_id )
    );

    MySQL said:

    #1170 - BLOB/TEXT column 'products_id' used in key specification without a key length

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: trying to create new database

    Try editing this line

    KEY idx_key_value_zen( configuration_key, configuration_value ) ,

    to read

    KEY idx_key_value_zen( configuration_key, configuration_value(10)) ,
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: trying to create new database

    KEY idx_cust_id_prod_id_zen (customers_id,products_id(36))


    Seems that your backup mechanism isn't getting this quite right. I'm pulling these parameters from the Zen Cart install SQL (zc_install/sql/mysql_zencart.sql).
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Oct 2005
    Location
    Helena, MT
    Posts
    118
    Plugin Contributions
    0

    Default Re: trying to create new database

    OK thank you, thank you, very helpful! I've got it now. yes I wondered where you were getting those numbers!

 

 

Similar Threads

  1. Trying to create a new pages - Done this with EZPages, but how do I link to it?
    By joecooper in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 19 Mar 2015, 12:03 PM
  2. cannot create session when trying to update database
    By brad_at_foreverybody in forum Upgrading from 1.3.x to 1.3.9
    Replies: 12
    Last Post: 27 Oct 2010, 09:07 PM
  3. Replies: 4
    Last Post: 11 Mar 2010, 06:11 AM
  4. No Zones showing up when trying to create new definitions?
    By gamestuff in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 21 Oct 2009, 05:01 AM

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