Results 1 to 6 of 6

Thread: Database unavailable

  1. #1
    GatorIT is offline Junior Member
    Join Date
    Sep 2008
    Posts
    3

    Default Database unavailable

    I am running ubuntu with apache2, php5, and mysql. For some reason, the Sugar installer keeps saying Database Support was not found. It tells me where to find my php.ini file. MySQL is installed and should be working. I did sudo apt-get install mysql-server and then sudo apt-get install php5-mysql. Port 3306 is open on my router and webmin says MySQL is running. Any ideas?

    Also, for the modules and cache directories, what permissions do you recommend. I did 777, but this may be too insecure. When I tried 766 the installer would not work.

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Database unavailable

    Sounds like your PHP configuration doesn't have the MySQL client enabled.

    Take a look at your current PHP config by creating a test PHP script with phpinfo() in it and that should tell you whether or not it is enabled.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    GatorIT is offline Junior Member
    Join Date
    Sep 2008
    Posts
    3

    Default Re: Database unavailable

    Thanks for the advice. Here is the output from the MySQL section of the test. I am not quite sure what I am looking for.

    MySQL Support enabled
    Active Persistent Links 0
    Active Links 0
    Client API version 5.0.51a
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/run/mysqld/mysqld.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient

    Directive Local Value Master Value
    mysql.allow_persistent On On
    mysql.connect_timeout 60 60
    mysql.default_host no value no value
    mysql.default_password no value no value
    mysql.default_port no value no value
    mysql.default_socket no value no value
    mysql.default_user no value no value
    mysql.max_links Unlimited Unlimited
    mysql.max_persistent Unlimited Unlimited
    mysql.trace_mode Off Off

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Database unavailable

    Hi GatorIT

    As Angel said run the phpinfo() and attach the output in your next post.
    The phpMyAdmin main page contains a link to the phpinfo.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    GatorIT is offline Junior Member
    Join Date
    Sep 2008
    Posts
    3

    Default Re: Database unavailable

    Thank you for all your help. I reinstalled a few packages and it seems to be working now.

  6. #6
    SlidingHorn's Avatar
    SlidingHorn is offline Senior Member
    Join Date
    May 2010
    Posts
    20

    Default Re: Database unavailable

    Edit: Not sure what happened, but the problem is gone...on to the next problem now, lol

    I'm actually having the same issue here. Here's (what i believe is) the relevane phpinfo output:

    PHP Code:
    System     Linux ryan-laptop 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686
    Build Date     Apr 9 2010 08:14:00
    Server API     Apache 2.0 Handler
    Virtual Directory Support     disabled
    Configuration File 
    (php.iniPath     /etc/php5/apache2
    Loaded Configuration File     
    /etc/php5/apache2/php.ini
    Scan this dir 
    for additional .ini files     /etc/php5/apache2/conf.d
    Additional 
    .ini files parsed     /etc/php5/apache2/conf.d/mysql.ini, /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apache2/conf.d/pdo.ini, /etc/php5/apache2/conf.d/pdo_mysql.ini
    PHP API     20090626
    PHP Extension     20090626
    Zend Extension     220090626
    Zend Extension Build     API220090626
    ,NTS
    PHP Extension Build     API20090626
    ,NTS
    Debug Build     no
    Thread Safety     disabled
    Zend Memory Manager     enabled
    Zend Multibyte Support     disabled
    IPv6 Support     enabled
    Registered PHP Streams     https
    ftpscompress.zlibcompress.bzip2phpfileglobdatahttpftppharzip
    Registered Stream Socket Transports     tcp
    udpunixudgsslsslv3sslv2tls
    Registered Stream Filters     zlib
    .*, bzip2.*, convert.iconv.*, string.rot13string.toupperstring.tolowerstring.strip_tagsconvert.*, consumeddechunk

    PHP Credits
    Configuration
    apache2handler
    Apache Version     Apache
    /2.2.14 (Ubuntu)
    Apache API Version     20051115
    Server Administrator     webmaster
    @localhost
    Hostname
    :Port     127.0.1.1:80
    User
    /Group     www-data(33)/33
    Max Requests     Per Child
    Keep Aliveon Max Per Connection100
    Timeouts     Connection
    300 Keep-Alive15
    Virtual Server     Yes
    Server Root     
    /etc/apache2
    Loaded Modules     core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_mime mod_negotiation mod_php5 mod_reqtimeout mod_setenvif mod_status

    Apache Environment
    Variable    Value
    HTTP_HOST     localhost
    HTTP_USER_AGENT     Mozilla
    /5.0 (X11ULinux i686en-USrv:1.9.2.3Gecko/20100423 Ubuntu/10.04 (lucidFirefox/3.6.3
    HTTP_ACCEPT     text
    /html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    HTTP_ACCEPT_LANGUAGE     en-us,en;q=0.5
    HTTP_ACCEPT_ENCODING     gzip,deflate
    HTTP_ACCEPT_CHARSET     ISO-8859-1,utf-8;q=0.7,*;q=0.7
    HTTP_KEEP_ALIVE     115
    HTTP_CONNECTION     keep-alive
    HTTP_COOKIE     PHPSESSID=cpipa1oaflgme75iukkdn8seb1
    PATH     /usr/local/bin:/usr/bin:/bin
    SERVER_SIGNATURE     <address>Apache/2.2.14 (Ubuntu) Server at localhost Port 80</address>
    SERVER_SOFTWARE     Apache/2.2.14 (Ubuntu)
    SERVER_NAME     localhost
    SERVER_ADDR     127.0.0.1
    SERVER_PORT     80
    REMOTE_ADDR     127.0.0.1
    DOCUMENT_ROOT     /var/www
    SERVER_ADMIN     webmaster@localhost
    SCRIPT_FILENAME     /var/www/phpinfo.php
    REMOTE_PORT     41024
    GATEWAY_INTERFACE     CGI/1.1
    SERVER_PROTOCOL     HTTP/1.1
    REQUEST_METHOD     GET
    QUERY_STRING     no value
    REQUEST_URI     /phpinfo.php
    SCRIPT_NAME     /phpinfo.php

    mysql
    MySQL Support    enabled
    Active Persistent Links     0
    Active Links     0
    Client API version     5.1.41
    MYSQL_MODULE_TYPE     external
    MYSQL_SOCKET     /var/run/mysqld/mysqld.sock
    MYSQL_INCLUDE     -I/usr/include/mysql
    MYSQL_LIBS     -L/usr/lib -lmysqlclient_r

    Directive    Local Value    Master Value
    mysql.allow_local_infile    On    On
    mysql.allow_persistent    On    On
    mysql.connect_timeout    60    60
    mysql.default_host    no value    no value
    mysql.default_password    no value    no value
    mysql.default_port    no value    no value
    mysql.default_socket    /var/run/mysqld/mysqld.sock    /var/run/mysqld/mysqld.sock
    mysql.default_user    no value    no value
    mysql.max_links    Unlimited    Unlimited
    mysql.max_persistent    Unlimited    Unlimited
    mysql.trace_mode    Off    Off

    mysqli
    MysqlI Support    enabled
    Client API library version     5.1.41
    Active Persistent Links     0
    Inactive Persistent Links     0
    Active Links     0
    Client API header version     5.1.41
    MYSQLI_SOCKET     /var/run/mysqld/mysqld.sock

    Directive    Local Value    Master Value
    mysqli.allow_local_infile    On    On
    mysqli.allow_persistent    On    On
    mysqli.default_host    no value    no value
    mysqli.default_port    3306    3306
    mysqli.default_pw    no value    no value
    mysqli.default_socket    no value    no value
    mysqli.default_user    no value    no value
    mysqli.max_links    Unlimited    Unlimited
    mysqli.max_persistent    Unlimited    Unlimited
    mysqli.reconnect    Off    Off

    openssl
    OpenSSL support     enabled
    OpenSSL Library Version     OpenSSL 0.9.8k 25 Mar 2009
    OpenSSL Header Version     OpenSSL 0.9.8k 25 Mar 2009

    PDO
    PDO support    enabled
    PDO drivers     mysql

    pdo_mysql
    PDO Driver for MySQL    enabled
    Client API version     5.1.41

    shmop
    shmop support     enabled

    SimpleXML
    Simplexml support    enabled
    Revision     $Revision: 293036 $
    Schema support     enabled

    sockets
    Sockets Support     enabled

    PHP Variables
    Variable    Value
    _COOKIE["PHPSESSID"]    cpipa1oaflgme75iukkdn8seb1
    _SERVER["HTTP_HOST"]    localhost
    _SERVER["HTTP_USER_AGENT"]    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
    _SERVER["HTTP_ACCEPT"]    text/html,application/xhtml+xml,application/xml;q=0.9,*/
    *;q=0.8
    _SERVER
    ["HTTP_ACCEPT_LANGUAGE"]    en-us,en;q=0.5
    _SERVER
    ["HTTP_ACCEPT_ENCODING"]    gzip,deflate
    _SERVER
    ["HTTP_ACCEPT_CHARSET"]    ISO-8859-1,utf-8;q=0.7,*;q=0.7
    _SERVER
    ["HTTP_KEEP_ALIVE"]    115
    _SERVER
    ["HTTP_CONNECTION"]    keep-alive
    _SERVER
    ["HTTP_COOKIE"]    PHPSESSID=cpipa1oaflgme75iukkdn8seb1
    _SERVER
    ["PATH"]    /usr/local/bin:/usr/bin:/bin
    _SERVER
    ["SERVER_SIGNATURE"]    <address>Apache/2.2.14 (UbuntuServer at localhost Port 80</address>
    _SERVER["SERVER_SOFTWARE"]    Apache/2.2.14 (Ubuntu)
    _SERVER["SERVER_NAME"]    localhost
    _SERVER
    ["SERVER_ADDR"]    127.0.0.1
    _SERVER
    ["SERVER_PORT"]    80
    _SERVER
    ["REMOTE_ADDR"]    127.0.0.1
    _SERVER
    ["DOCUMENT_ROOT"]    /var/www
    _SERVER
    ["SERVER_ADMIN"]    webmaster@localhost
    _SERVER
    ["SCRIPT_FILENAME"]    /var/www/phpinfo.php
    _SERVER
    ["REMOTE_PORT"]    41024
    _SERVER
    ["GATEWAY_INTERFACE"]    CGI/1.1
    _SERVER
    ["SERVER_PROTOCOL"]    HTTP/1.1
    _SERVER
    ["REQUEST_METHOD"]    GET
    _SERVER
    ["QUERY_STRING"]    no value
    _SERVER
    ["REQUEST_URI"]    /phpinfo.php
    _SERVER
    ["SCRIPT_NAME"]    /phpinfo.php
    _SERVER
    ["PHP_SELF"]    /phpinfo.php
    _SERVER
    ["REQUEST_TIME"]    1273513039 
    Any suggestions you could offer would be greatly appreciated!
    Last edited by SlidingHorn; 2010-05-10 at 07:33 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Database unavailable : MySql
    By hodgson in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2007-12-18, 01:07 PM
  2. step 3 installation problem
    By voitek in forum Installation and Upgrade Help
    Replies: 10
    Last Post: 2007-02-14, 04:35 PM
  3. Repair Database does not
    By mmakowski in forum Help
    Replies: 1
    Last Post: 2007-01-03, 04:58 AM
  4. Replies: 0
    Last Post: 2006-07-17, 04:11 PM
  5. Replies: 6
    Last Post: 2005-10-08, 04:36 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
  •