No announcement yet.

Failed to get DB handle: SQLSTATE[HY000] [2002] Connection timed out

  • Filter
  • Time
  • Show
Clear All
new posts

  • aagcrc
    I'm still not successful to fix this issue, I tested in couple more server with same issue... Any more ideas?

    Leave a comment:

  • aagcrc
    The server had already PHP 5.6, it was just a matter of applying it and I also just finished upgrading the vBulletin Forum to version 4.2.5.
    But unfortunatelly I still have the issue.

    Leave a comment:

  • Mark.B
    Every upgrade will change the database to some degree. 4.2.0 to 4.2.5 makes some fairly big changes, particularly around the navbar manager and various other things.

    You can run the upgrade on a test copy first, but you cannot then import the live database onto that. You will need to run the upgrade again on the live database.

    Always have full backups at all times.

    Leave a comment:

  • aagcrc
    Ok thank you, quick, question, when you do the upgrade, does it alter the DB, any change to the DB?
    The question is because I have this new server, I will test the upgrade, when I'm ready to move it to live, do I have to execute the upgrade again with the updated DB?

    Thank you Mark.B

    Leave a comment:

  • Mark.B
    vBulletin 4.2.0 is only compatible with php versions up to 5.3.

    Your new server should not be running php 5.4 either, this too is no longer supported.

    As a bare minimum the new server should run php 5.6. You shoud then upgrade vBulletin to 4.2.5.

    Leave a comment:

  • Failed to get DB handle: SQLSTATE[HY000] [2002] Connection timed out

    Failed to get DB handle: SQLSTATE[HY000] [2002] Connection timed out trying to see the posts of the threats.

    We are moving to a new webhosting provider.

    We have restored the DB in multiple ways with no errors

    All the site content is visible (categories and threats, under admincp, we can see all the users, avatars, images, which they are Stored in the DB)

    But when we enter to a post give us the error message.

    We are currently running vBulletin version 4.2.0 Patch Level 3.
    I want to make the upgrade to VB5 but would like to fix the issue before.


    Server Type Linux CENTOS 6.10 x86_64 standard
    Cpanel WHM 56.0 (build 52)
    Web Server Apache v2.2.29 (cgi-fcgi)
    PHP 5.4.42
    MySQL Version 5.5.52-cll


    Server Type LinuxCENTOS 6.10 kvm
    Cpanel/WHM v70.0.51
    Web Server Apache v2.4.33 (cgi-fcgi)
    PHP 5.4.45
    MySQL Version 5.6.39


    PHP Max Post Size 24.00 MB
    PHP Maximum Upload Size 20.00 MB
    PHP Memory Limit 384.00 MB

    Any suggestion of troubleshooting available for this, would be really appreciate it.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.