+ Reply to Thread
Results 1 to 6 of 6

Thread: MYSQL Issues

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    8

    MYSQL Issues

    Can someone give me some pointers on how to fix this error? It shows up on the front end often, but I am also having issues once I get into the admin panel. I have already tried modifying the my.cnf SQL settings which allows the site to come up, but it's EXTREMELY SLOW...

    MYSQL ERROR
    Error: MySQL server has gone away
    Query: SELECT `Code`, IF(`Code` = "en", 1, 0) AS `Order`,`Key`,`Direction`,`Date_format`,`Status` FROM `fl_languages` WHERE (`Status` = 'active') ORDER BY `Order` DESC
    Function: getAll
    Class: rlDb
    File: /home/plentylt/public_html/includes/classes/rlDb.class.php (line# 318)

    Any help would be appreciated. Running 4.1. Thanks!
    Last edited by Shawn Hall; December 28, 2013 at 02:05 AM.

  2. #2
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    Hello Shawn,

    Just as it looks, you have timeout problems with your connection to the database.
    The problem can contain multiple scenarios. Please read about it here - Link

    Best regards
    Steffen

  3. #3
    Junior Member
    Join Date
    Feb 2012
    Posts
    8
    Thanks Steffen. I have other sites using PHP/MySQL that are working fine, perhaps there are PHP settings I need to modify or I should attempt to upgrade PHP? I'm on 5.3.22.

    My PHP Info

  4. #4
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    check the mysql.connect_timeout in your php.ini.
    Your value is 60
    For test you can use 120.
    Whether it helps something or the problem lies somewhere else i can not say...

    Best regards
    Steffen

  5. #5
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    I still have a presumption.
    Install the IP Geolocation Database Plugin (ipgeo).
    Then test again.

  6. #6
    Junior Member
    Join Date
    Feb 2012
    Posts
    8
    I got busy and just got back to this...

    Thanks again Steffen, installing the ipgeo plugin worked! The site loads and is now 1,000x faster.

+ Reply to Thread