Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1. #11
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Building CSV list

    ok, then you either need to change the select statement or connect directly to the database and run the command on the zencart db not on the default db.

  2. #12
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: Building CSV list

    okay. So this is what I built from your example:

    Code:
    SELECT wzc_products.products_id as "Product ID", wzc_products_description.products_name as "Product Name", wzc_products.products_model as "Product Model", wzc_manufacturers_info.manufacturers_id as "Manufacturers ID", wzc_manufacturers.manufacturers_name as "Manufacturers Name"
    
    FROM products
    INNER JOIN wzc_products_description ON wzc_products_description.products_id = wzc_products.products_id
    INNER JOIN wzc_manufacturers_info On wzc_products.manufacturers_id = wzc_manufacturers_info.manufacturers_id 
    INNER JOIN wzc_manufacturers On wzc_manufacturers_info.manufacturers_id = wzc_manufacturers.manufacturers_id
    I was getting an error "#1054 - Unknown column 'wzc_products.products_id' in 'field list' " but when I removed the ";" delimiter just below it accepted it. I hit go about 10 minutes ago and it's still working. Is it possible a query would take so long or did I do something wrong?!
    Last edited by familynow; 27 Sep 2012 at 10:59 PM. Reason: found actual error msg

  3. #13
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: Building CSV list

    yet if I browse the wzc_products
    SELECT COUNT( * ) AS `Rows` , `products_id`
    FROM `wzc_products`
    GROUP BY `products_id`
    ORDER BY `products_id`
    LIMIT 0 , 30

    I get 69 pages returned(I have approx. 2,100 products)

  4. #14
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Building CSV list

    Quote Originally Posted by familynow View Post
    okay. So this is what I built from your example:

    Code:
    SELECT wzc_products.products_id as "Product ID", wzc_products_description.products_name as "Product Name", wzc_products.products_model as "Product Model", wzc_manufacturers_info.manufacturers_id as "Manufacturers ID", wzc_manufacturers.manufacturers_name as "Manufacturers Name"
    
    FROM products
    INNER JOIN wzc_products_description ON wzc_products_description.products_id = wzc_products.products_id
    INNER JOIN wzc_manufacturers_info On wzc_products.manufacturers_id = wzc_manufacturers_info.manufacturers_id 
    INNER JOIN wzc_manufacturers On wzc_manufacturers_info.manufacturers_id = wzc_manufacturers.manufacturers_id
    I was getting an error "#1054 - Unknown column 'wzc_products.products_id' in 'field list' " but when I removed the ";" delimiter just below it accepted it. I hit go about 10 minutes ago and it's still working. Is it possible a query would take so long or did I do something wrong?!
    I have 50k products and it returns all results in ~1 second.

    Not sure which semicolon delimiter you are talking about?

    I think you need to edit the

    from products to from wzc_products...

  5. #15
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: Building CSV list

    I kinda thought so...

    At the bottom of the SQL tab there is a "delimiter" field and a semicolon in it by default. If I leave the semicolon I get the aformentioned error. If I remove it the page jsut times out(blank). I guess I'll have to try with something other than phpmyadmin.

  6. #16
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Building CSV list

    I like heidisql (free) but you will have to add a mysql user/host to allow connection to your shared server from your PC.

  7. #17
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: Building CSV list

    I've been trying to connect using libreoffice base and just can't figure it out.

  8. #18
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Building CSV list

    Do you have the MySQL odbc connector installed and configured?


    If you do not configure your MySQL server to allow remote connections from your IP, you will not get access to your data (regardless of tool).

  9. #19
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: Building CSV list

    Yeah I thought of that. I'm not certain how to do that in a shared enviro. Do you think that might be a setting I could adjust in phpmyadmin?

  10. #20
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Building CSV list

    Yes. You need to specify which hosts a user can connect from.

    You will need your PC's IP address, you don't want to open it up to the world.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 5 Feb 2011, 01:52 AM
  2. Easy Populate CSV cannot upload csv files
    By alimtlai in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 Sep 2009, 02:22 PM
  3. easy populate 1.2.5.5.csv - fetch_array error on .csv generation
    By emmtqg in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 4 Sep 2009, 07:10 PM
  4. Replies: 0
    Last Post: 2 Sep 2009, 11:59 AM
  5. Uploading CSV of customer list
    By margecc in forum General Questions
    Replies: 0
    Last Post: 1 Sep 2009, 09:55 PM

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