Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2006
    Posts
    13
    Plugin Contributions
    0

    Default Failed to create tables under database setup step.

    Hi

    As soon as I click on the save database setting, under the database setup step installation, I can see the zencart application try to create table under my database. Please see the blue color error message. The zencart is not allow me continuous the next step.

    Please advise me the solution, I am using MYSQL5.0

    http://localhost/shop/zc%5Finstall/i...se_phpbb=false




    Installation In Progress...

    ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
    1101 BLOB/TEXT column 'products_options_values' can't have a default value
    in:
    [CREATE TABLE orders_products_attributes ( orders_products_attributes_id int(11) NOT NULL auto_increment, orders_id int(11) NOT NULL default '0', orders_products_id int(11) NOT NULL default '0', products_options varchar(32) NOT NULL default '', products_options_values BLOB NOT NULL default '', options_values_price decimal(15,4) NOT NULL default '0.0000', price_prefix char(1) NOT NULL default '', product_attribute_is_free tinyint(1) NOT NULL default '0', products_attributes_weight float NOT NULL default '0', products_attributes_weight_prefix char(1) NOT NULL default '', attributes_discounted tinyint(1) NOT NULL default '1', attributes_price_base_included tinyint(1) NOT NULL default '1', attributes_price_onetime decimal(15,4) NOT NULL default '0.0000', attributes_price_factor decimal(15,4) NOT NULL default '0.0000', attributes_price_factor_offset decimal(15,4) NOT NULL default '0.0000', attributes_price_factor_onetime decimal(15,4) NOT NULL default '0.0000', attributes_price_factor_onetime_offset decimal(15,4) NOT NULL default '0.0000', attributes_qty_prices text, attributes_qty_prices_onetime text, attributes_price_words decimal(15,4) NOT NULL default '0.0000', attributes_price_words_free int(4) NOT NULL default '0', attributes_price_letters decimal(15,4) NOT NULL default '0.0000', attributes_price_letters_free int(4) NOT NULL default '0', products_options_id int(11) NOT NULL default '0', products_options_values_id int(11) NOT NULL default '0', products_prid tinytext NOT NULL, PRIMARY KEY (orders_products_attributes_id), KEY idx_orders_id_prod_id_zen (orders_id,orders_products_id) ) TYPE=MyISAM;]



    I logon to MYSQL Server and I can see some of the table has been created by zencart application. See details below:

    mysql> use zencart
    Database changed
    mysql> show tables;
    +----------------------------------+
    | Tables_in_zencart |
    +----------------------------------+
    | address_book |
    | address_format |
    | admin |
    | admin_activity_log |
    | authorizenet |
    | banners |
    | banners_history |
    | categories |
    | categories_description |
    | configuration |
    | configuration_group |
    | counter |
    | counter_history |
    | countries |
    | coupon_email_track |
    | coupon_gv_customer |
    | coupon_gv_queue |
    | coupon_redeem_track |
    | coupon_restrict |
    | coupons |
    | coupons_description |
    | currencies |
    | customers |
    | customers_basket |
    | customers_basket_attributes |
    | customers_info |
    | db_cache |
    | email_archive |
    | ezpages |
    | featured |
    | files_uploaded |
    | geo_zones |
    | get_terms_to_filter |
    | group_pricing |
    | languages |
    | layout_boxes |
    | manufacturers |
    | manufacturers_info |
    | media_clips |
    | media_manager |
    | media_to_products |
    | media_types |
    | meta_tags_categories_description |
    | meta_tags_products_description |
    | music_genre |
    | newsletters |
    | orders |
    | orders_products |
    | upgrade_exceptions |
    +----------------------------------+
    49 rows in set (0.00 sec)

    mysql>

  2. #2
    Join Date
    Oct 2006
    Posts
    1
    Plugin Contributions
    0

    Default Re: Failed to create tables under database setup step.

    I get exactly the same problem - also using mySQL 5.0 and zen cart 1.3.5; php 4.4.4

  3. #3
    Join Date
    Apr 2006
    Posts
    2
    Plugin Contributions
    0

    Default Re: Failed to create tables under database setup step.

    Hi
    I am facing the same thing. It seems that the line that is giving problems is
    products_options_values BLOB NOT NULL default ''

    Looking at http://www.zen-cart.com/forum/showth...highlight=BLOB, it seems that the line should be written as
    products_options_value_text BLOB NULL default NULL,

    How should this problem be fixed? (I would not want to simply replace to avoid future schema problems.)

  4. #4
    Join Date
    Apr 2006
    Posts
    2
    Plugin Contributions
    0

    Default Re: Failed to create tables under database setup step.

    Seems that the problem happens to TEXT type field as well in query_builder table.

  5. #5
    Join Date
    Oct 2006
    Posts
    1
    Plugin Contributions
    0

    Default Re: Failed to create tables under database setup step.

    I have this exact same problem as well. It's kind of surprising how little info there is on this error, as it seems like it would be pretty prevalent.

    I didn't want to make any changes to the schema in the sql file for the same reasons as the OP, I don't want to break anything else later on.

  6. #6
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: Failed to create tables under database setup step.

    Zen 1.3.5 isn't supported for MySQL 5.x.x yet - it may work, or you may get errors. It works fine with MySQL 4.4.x

  7. #7
    Join Date
    Nov 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Failed to create tables under database setup step.

    Well, I think I got it to work in with MYSQL 5...

    What I had to do was start the install with MYSQL in compatibility mode: (in the MYSQL Console)


    [FONT=monospace]SET @@global.sql_mode='MYSQL40'

    [FONT=Verdana]Then I got past one error, to the next:[/FONT]

    [FONT=monospace]SET @@global.sql_mode='TRADITIONAL'

    [FONT=Verdana]That did it. FYI, I am on XP/IIS/PHP5/MYSQL5[/FONT]
    [/FONT]

    [/FONT]

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Failed to create tables under database setup step.

    .

    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.

 

 

Similar Threads

  1. database setup - failed connection
    By marius2012 in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 29 Jul 2012, 11:22 AM
  2. v150 Database Setup Issue: Connection to Database failed, on iPage
    By tempoart in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Jul 2012, 07:43 AM
  3. Database setup failed
    By vivkris25 in forum Installing on a Windows Server
    Replies: 1
    Last Post: 3 Dec 2011, 04:11 PM
  4. database setup - failed connection
    By bx32 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 25 Oct 2011, 06:38 AM
  5. Create Database, Tables and Drop Database or Tables
    By elwood cordery in forum General Questions
    Replies: 3
    Last Post: 17 Aug 2009, 04:03 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