Results 1 to 10 of 26

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    482
    Plugin Contributions
    0

    Default MySQL bottlneck - getting mysql errors

    1.3.7 (latest) not 1.3.8

    Our database appears to be 500 MiB... and we are having mysql errors by the boatload.

    Is there someone who can help ... the store will continue to grow, so we need to learn what to do now with such a busy database.

    Thank you in advance.

  2. #2
    Join Date
    Jan 2004
    Posts
    482
    Plugin Contributions
    0

    Default Re: MySQL bottlneck - getting mysql errors

    Our loads are pretty high. How can we pinpoint what is using the resources?

    Quote Originally Posted by ksoup View Post
    1.3.7 (latest) not 1.3.8

    Our database appears to be 500 MiB... and we are having mysql errors by the boatload.

    Is there someone who can help ... the store will continue to grow, so we need to learn what to do now with such a busy database.

    Thank you in advance.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: MySQL bottlneck - getting mysql errors

    Need to know more - exactly what are the errors? What version of MYSQL? Etc.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Jan 2004
    Posts
    482
    Plugin Contributions
    0

    Default Re: MySQL bottlneck - getting mysql errors

    Thank you, Kim....

    The webhost tells us our server loads are high by a huge margin!
    Database: MySQL 5.0.45
    load average: 12.67, 11.41, 10.83
    HTTP Server: Apache/1.3.39 (Unix) PHP/5.2.5

    Here are some of the errors received (but mainly sluggggiiiisssshhhh store!!)

    ~ MySql Server has gone away

    ~ 1064 error

    ~ Common Customer Complaint
    I am doing my VERY best to buy a ton of stuff from your
    store while it is on sale....however....it is taking FOREVER to load.

    ~ 2006 MySQL server has gone away
    in: [select code, title, symbol_left, symbol_right, decimal_point,
    thousands_point, decimal_places, value from zen_currencies]

    ~ 1062 Duplicate entry 'zc_6ec65decb95a7741ada473af0fde76e1' for key 1
    in: [db_cache table]

    After clicking add item to cart

    ~ 2008 MySQL client ran out of memory


    We have repaired our tables... the webhost has done a deeper level database repair and they are intact.

    Any help you can give will be most appreciated! :)


    Quote Originally Posted by Kim View Post
    Need to know more - exactly what are the errors? What version of MYSQL? Etc.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: MySQL bottlneck - getting mysql errors

    Do all your tables have the correct indexes on them? (To find out, you'll need to export your table structures and compare them against the master mysql_zencart.sql file in the zc_install/sql folder)
    .

    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.

  6. #6
    Join Date
    Jan 2004
    Posts
    482
    Plugin Contributions
    0

    Default Re: MySQL bottlneck - getting mysql errors

    I have started comparing... and I see the following commonly... the _zen is missing from the keynames listed in phpmyadmin.... Is that a problem?


    Master SQL
    KEY idx_page_accessed_zen (page_accessed),
    KEY idx_access_date_zen (access_date),
    KEY idx_ip_zen (ip_address)



    Index shown in PHPmyadmin
    keyname type cardinality field
    PRIMARY PRIMARY log_id
    page_accessed INDEX page_accessed
    access_date INDEX access_date
    idx_ip_zen INDEX ip_address




    Quote Originally Posted by DrByte View Post
    Do all your tables have the correct indexes on them? (To find out, you'll need to export your table structures and compare them against the master mysql_zencart.sql file in the zc_install/sql folder)

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: MySQL bottlneck - getting mysql errors

    Quote Originally Posted by ksoup View Post
    Our database appears to be 500 MiB... and we are having mysql errors by the boatload.

    The webhost tells us our server loads are high by a huge margin!
    Database: MySQL 5.0.45
    load average: 12.67, 11.41, 10.83
    HTTP Server: Apache/1.3.39 (Unix) PHP/5.2.5
    When you say "our Server loads" does this mean you have your own Server?

    Yes - then more / better optimization needs to be done at the Server level

    No - then probably time to get your own Server

    A 500 MB database is HUGE and, if the above load stats are from a busy Shared Server and are continually at that level, your site will never get past the problems it has now.

  8. #8
    Join Date
    Jan 2004
    Posts
    482
    Plugin Contributions
    0

    Default Re: MySQL bottlneck - getting mysql errors

    i certainly appreciate your responses and help!!

    i understand we are on a dedicated server (does that share resources with the masses?). I do know, however, we share the resources with our forum and gallery.

    Quote Originally Posted by Website Rob View Post
    When you say "our Server loads" does this mean you have your own Server?

    Yes - then more / better optimization needs to be done at the Server level

    No - then probably time to get your own Server

    A 500 MB database is HUGE and, if the above load stats are from a busy Shared Server and are continually at that level, your site will never get past the problems it has now.

  9. #9
    Join Date
    Jan 2004
    Posts
    482
    Plugin Contributions
    0

    Default Re: MySQL bottlneck - getting mysql errors

    Here is a common error we are getting... along with others... but i have seen this one several times or more

    2006 MySQL server has gone away in:
    [select code, title, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value from zen_currencies]

    Thoughts?

    We are looking at a server upgrade and will do that soon. But, why do we continue to get errors??

 

 

Similar Threads

  1. mysql errors
    By kitcorsa in forum Upgrading from 1.3.x to 1.3.9
    Replies: 11
    Last Post: 6 Jul 2010, 10:59 AM
  2. MYSQL Upgrade, now getting errors on mods
    By netchaos in forum General Questions
    Replies: 2
    Last Post: 22 Feb 2009, 10:19 PM
  3. running 1.3.0 MySQL Database errors
    By Noella in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 15 Sep 2006, 06:34 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