Results 1 to 2 of 2

Thread: Could not connect to server localhost as root

  1. #1
    shivaranjani is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    174

    Question Could not connect to server localhost as root

    Hello
    I have installed sugarcr5.2.k on the linux server. I was able to run the application smoothly. Suddenly I am being displayed with the following error:-"Could not connect to server localhost as root.Can't connect to local MySQL server through socket '/opt/sugarcrm-5.2.0k/mysql/tmp/mysql.sock' (2)". I have restarted my services still I cannot get back to my application. Can any one give there valuable suggestions? I have not changed anything in the configuration files. Please do give your valuable suggestions.


    Operating System:- Linux
    Sugarcrm VErsion:- 5.2.k CE
    PHP :- 5.2
    MySql :- 5.2
    Apachee:- 5

    Thanks in advance for the help.

    Regards,
    ShivaRanjani

  2. #2
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: Could not connect to server localhost as root

    It seems as if the socket it is trying to connect through is wrong.

    Can you connect to mysqld from the command line using the mysql command?
    If so look for mysql.sock in your config files and make sure it has an absolute path of /tmp/mysql.sock

    If all of that fails try changing localhost in your config.php to 127.0.0.1

    M
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Could not connect to server localhost as sugarcrm
    By NFerreira in forum Portugese
    Replies: 2
    Last Post: 2009-03-26, 03:12 PM
  2. Replies: 3
    Last Post: 2008-04-23, 12:38 PM
  3. Replies: 3
    Last Post: 2008-04-21, 11:09 PM
  4. Replies: 7
    Last Post: 2008-03-21, 12:24 AM
  5. Replies: 3
    Last Post: 2007-02-28, 07:34 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
  •