Results 1 to 4 of 4

Thread: Help. Mysql Database.

  1. #1
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Help. Mysql Database.

    Hi. I'm using sugar CE 5.2e, and i installed sugar's DB in another machine, both on ubuntu.
    So i have one server (10.69.120.1) wich is my mysql DB, and i have other server 10.69.120.2 wich has the sugarcrm and apache.

    On server 10.69.120.1 (mysql db) i added the user:
    Code:
    create user apps@'10.69.120.2' identified by '***'
    
    GRANT ALL PRIVILEGES ON *.* TO 'apps'@'10.69.120.2'
    On server 10.69.120.2 i changed the config.php:

    Code:
      'dbconfig' =>
      array (
        'db_host_name' => '10.69.120.1',
        'db_host_instance' => 'SQLEXPRESS',
        'db_user_name' => 'apps',
        'db_password' => '*****',
        'db_name' => 'sugarcrm',
        'db_type' => 'mysql',
      ),
      'dbconfigoption' =>
      array (
        'persistent' => true,
        'autofree' => false,
        'debug' => 1,
        'seqname_format' => '%s_seq',
        'portability' => 0,
        'ssl' => false,
      ),
    When i try to conect: http://10.69.120.2 i get the following error:

    Could not connect to server 10.69.120.1 as apps.Lost connection to MySQL server at 'reading initial communication packet', system error: 111

    To check the user permissions i called mysql command line:
    mysql -h 10.69.120.1 -u apps -p sugarcrm --port=3360
    and this works on the cmd but not on sugar. What can i do?
    Last edited by kinshibuya; 2009-10-06 at 02:43 PM. Reason: forgot something
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

  2. #2
    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: Help. Mysql Database.

    Have a look here.

    Regards
    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.

  3. #3
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: Help. Mysql Database.

    Hi.
    I changed mysql to standard port 3306 and it's working just fine.
    But i still doesn't know how to make sugar connect to a non standard port thow.
    I found some threads on how to do this, but they are all for 4.5 or 5.0 versions, anyone knows how to do this on 5.2? Also, i m working with a faststack linux instalation could this be the problem?
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

  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: Help. Mysql Database.

    Hopefully these links can help you:
    Link 1
    Link 2

    Regards
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. No MySQL Database available
    By FainLynn in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2007-10-03, 09:47 PM
  2. MySQL Database Not Available
    By ipguy in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-06-07, 05:00 AM
  3. MySQL Database Not Available
    By takit in forum Downloads
    Replies: 16
    Last Post: 2007-03-20, 12:47 PM
  4. MySQL Database not Available
    By tomred in forum General Discussion
    Replies: 2
    Last Post: 2006-08-21, 01:46 PM
  5. MySQL Database Not Available
    By jdev in forum Help
    Replies: 1
    Last Post: 2006-03-02, 02:39 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
  •