Results 1 to 3 of 3

Thread: Could not connect to server... MySQL server through socket /srv/mysql/mysql.sock

  1. #1
    mgarvin6026 is offline Junior Member
    Join Date
    May 2007
    Posts
    1

    Default Could not connect to server... MySQL server through socket /srv/mysql/mysql.sock

    I cannot seem to find an answer to the issue I am having with the rPath Version of the SugarCRM appliance version 4.5.0b I have installed

    I had everything up and running and was just getting started by entering 5 users and uploaded some contacts and started to learn my way around the system.

    Today I logged onto the Web interface as an admin account and performed a backup of the system, I added three new users and I clicked on the update wizard. The wizard did not display anything so I gave up on that. The short story is that when I logged off as admin and tried to logon with my own account, after I attempted to log on with my account name the logon failed and my account name was replaced with admin and the system will not log me on. I get an error: Could not connect to server localhost as sugarcrm.Can't connect to local MySQL server through socket '/srv/mysql/mysql.sock' (2) --- and from this I have discovered that MySQL is not running and will not startup. I followed the instructions in the user guide to manually startup MySQl using the command: service mysqld start and I receive a FAILED error: Timeout error occurred trying to start MySQL Daemon.

    When I use the command: su –l mysql -- I receive the error: Warning: cannot change directory to /var/lib/mysql: no such file or directory – bash-3.00$

    I am unable to get MySQL to startup and I know that I did not move or delete any files I only made a backup.

    I believe the reason my copy of MySQL will not start is because the hard disk space is used up. I had created a backup of the CRM system and since that time the MySQL server will not startup. I did a df –h and it shows 1.2G allocated and 1.2G used and 0 available. So when the SugarCRM appliance was created it was created with only 1.2G hard disk space available. I removed the backup file that was created and that did not return any space back to the system. Is this the correct reason why the MySQL server will not startup. When I do a PS -al it shows MYSQLD_safe and my processor is pegged at 100%.

    Is there a way to mount an additional drive (VM) and move the MySQL DB to that new location or Is there a way to allocate more space to the VM? We are using VMware ESX and I believe it is version 3.

    Thanks for any help.

  2. #2
    stuzenz is offline Junior Member
    Join Date
    May 2007
    Posts
    2

    Wink Re: Could not connect to server... MySQL server through socket /srv/mysql/mysql.sock

    I had the same issue - also on the vm. I fooled around for a bit - then thought about the allocated space for the hdd. Considering it happened when making a backup and all ....

    on throwing a df -kh against the vm I found I had zero space left on the hdd. I deleted the backup, Tried to login again and all was fine.

    time to quadruple the size of the vm hdd.

    Hope it is as easy as this for you others with problems

    regds,
    Stuart

  3. #3
    nathanbthomas is offline Sugar Community Member
    Join Date
    Mar 2006
    Posts
    46

    Default Re: Could not connect to server... MySQL server through socket /srv/mysql/mysql.sock

    Yes, this is fairly common. There is a description of expanding the VM here at the bottom:

    http://www.sugarcrm.com/wiki/index.p...and_User_Guide

    The latest version (4.5.1d) of the vmware image that will be out tomorrow gives a much bigger free space allocation to avoid this.
    Nathan Thomas
    Sugar Appliance Maintainer

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2007-07-30, 02:58 AM
  2. Huge backups -- normal?
    By Liam in forum Help
    Replies: 5
    Last Post: 2007-05-02, 05:36 AM
  3. Replies: 7
    Last Post: 2007-02-14, 03:48 PM
  4. Replies: 0
    Last Post: 2005-10-22, 09:23 PM
  5. Replies: 13
    Last Post: 2005-07-08, 12:25 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
  •