Results 1 to 10 of 10

Thread: Can not connect to database

  1. #1
    rus
    rus is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    37

    Default Can not connect to database

    Hi,

    I use the SugarCRM CE Version 5.2b with MSSQL 2005 on Windows Server 2003.
    The problem is I often get this error message when I open my application at http://xxx.xxx.xxx.xxx :
    "Could not connect to server xxx.xxx.xxx.xxx, 1433 as user."

    Right now the only solution I have is to restart the apache and it will be fine again.

    Any suggestion will be appreciated.

  2. #2
    letrium is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    614

  3. #3
    rus
    rus is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    37

    Default Re: Can not connect to database

    yup, actually "user" is the db admin.
    the thing is, this error is not always show all the time.
    sometimes it would take a week without this error, but sometime it show everyday.

  4. #4
    letrium is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    614

  5. #5
    rus
    rus is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    37

    Default Re: Can not connect to database

    even more weird today, I've got this error message,
    I open the SQL Profiler on the server to investigate this problem,
    and suddenly it worked fine.. hhhmmm...

    the other thing is when I query with "sp_who" on the server, there are a lot of connection to my sugarcrm database. It seems sugarCRM(or the PHP) is not closing the connection after the logout. Is there any solutions for this ?

  6. #6
    rus
    rus is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    37

    Default Re: Can not connect to database

    I just know there is dbconfigoption - "persistent" option in config.php, if I set this "persistent" option to "false" (default is "true), the db connection will be close as soon as the query ended.
    But I don't know would this affecting the sugarcrm performance.
    Is there anyone can explain this ?

  7. #7
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Can not connect to database

    We had exactlly the same problem with a customer recently but it was a MSSQL 2005. Since other php applications showed similar errors we tend to believe that this isn't Sugar's fault but a misconfiguration in mssql or apache (it never happened with sqlexpress and the stack installer - coincidence?).

    About persistent connections - you need to test it, I am just checking what we do as standard
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  8. #8
    rus
    rus is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    37

    Default Re: Can not connect to database

    thanks for the information Rob ..
    I tested in my development environment with the "persistent" option set to false is better, I never get the error message so far.
    previously it showed the error when there are about 25 connection to the database.

  9. #9
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Can not connect to database

    Thx for the feedback, I just checked an we swich persistent connections off as per default. But this is Mysql.

    I am sure there is a parameter somewhere (in mssql) how many connections can be kept open and for how long they live if idle.
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  10. #10
    jasv is offline Sugar Community Member
    Join Date
    Sep 2008
    Posts
    98

    Default Re: Can not connect to database

    Hi...

    I'm having the same problem... but if i set persistent as false... sugar does not work at all...

    i´ve created a new thread with my issue details...: http://www.sugarcrm.com/forums/showt...179#post148179

    Anyone can help up us to get this out?
    please sugar heros... this is really important...

    Thanks in advance... Cheers.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need help; How to connect a live database to SugarCRM ?
    By occupied in forum Sales Force Automation
    Replies: 1
    Last Post: 2011-09-21, 02:24 PM
  2. How to connect different database for single module
    By maniram2202 in forum Developer Help
    Replies: 18
    Last Post: 2010-01-14, 04:21 AM
  3. Replies: 1
    Last Post: 2008-12-01, 08:56 AM
  4. connect sugarcrm to another database
    By shahrzad.khorrami in forum Developer Help
    Replies: 3
    Last Post: 2008-06-23, 07:39 AM
  5. Can two installations (open and pro) connect to same database?
    By fdesch in forum Installation and Upgrade Help
    Replies: 9
    Last Post: 2007-08-10, 07:23 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
  •