Results 1 to 3 of 3

Thread: Database Error

  1. #1
    DiabloD
    Guest

    Default Database Error

    Hi

    I'm using GPLDate & my site works fine, but then all of a sudden I get a blank screen with a "Database Activation Failed" error message. Each time this occurs I get an email from postmaster@mysite.com (subject: Error)

    Error in substr(/profile_edit.php, 0, (strlen(/profile_edit.php) - @strlen())):
    Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
    (2)

    Error in substr(/admin/index.php, 0, (strlen(/admin/index.php) - @strlen())):
    Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
    (2)

    Error in substr(/im.php, 0, (strlen(/im.php) - @strlen())): Can't connect to
    local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

    & many more...

    Are these errors caused due to a bug in the code or hosting server .

    Please Help!!!!!

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Hi,

    Yes - it appears your host is having mSQL errors.

    Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

    is a host issue.

    Couple of things can cause this... one is the use of pconnect by Dolphin and other scripts - using up all the database connections. Your host can disable pconnect in my.cnf system wide - or you can change the code in db.inc.php - search modmysite for "pconnect" to find help with that.

    Also - this error can happen when your host is doing backups... does it happen during the day or just in the early AM (server time)?

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3
    DiabloD
    Guest

    Default

    Thanks Smoge, I think the problem was caused because my host was doing backups because all the errors were generated within a few minutes & hasn't happened again.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. DAtaBase error! Plz help
    By sash007 in forum Bugs Dolphin 6.1.4
    Replies: 3
    Last Post: 05-22-2009, 12:31 AM
  2. Help... Database error...
    By destintonight in forum General Troubleshooting
    Replies: 1
    Last Post: 10-21-2008, 08:37 PM
  3. Database Error mod
    By CodyT in forum Free Mod Exchange
    Replies: 0
    Last Post: 07-09-2007, 05:52 PM
  4. Database access error after database upload
    By sanne in forum Database
    Replies: 1
    Last Post: 06-03-2007, 06:49 AM
  5. database error
    By damo2550 in forum General Troubleshooting
    Replies: 1
    Last Post: 03-14-2007, 08:43 AM

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
  •