Results 1 to 8 of 8

Thread: can't get into SugarCRM mysql

  1. #1
    sugar43geek is offline Member
    Join Date
    Jun 2011
    Posts
    5

    Default can't get into SugarCRM mysql

    Using SugarCRM Community Edition 6.1.4 on a SLES server.

    Two related problems: I can't get into the mysql db and I can't get phpmyadmin to open.

    at /opt/sugarcrm-5.5.4/mysql/bin is enter ./mysql -u root -p and get prompted for the password. On entering the password I get this error message:

    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

    I get the same error when I try to use mysqldump.

    With phpmyadmin, when I enter into Firefox: localhost/phpmyadmin, I get prompted for a username and password and have tried every possible combination that it might be. Shouldn't it be the same username and password as the mysql user?

  2. #2
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: can't get into SugarCRM mysql

    You need to use other socket.

    For example
    mysql -u root -p 123 -s path to socket
    Letrium ltd. - Only high quality service
    http://letrium.com

  3. #3
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: can't get into SugarCRM mysql

    What stack are you using, could the first username/password be coming from an .htaccess file maybe?

    If you are using the bitrock stack (it looks like you might be) is it possible that mysql is not started?
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  4. #4
    sugar43geek is offline Member
    Join Date
    Jun 2011
    Posts
    5

    Default Re: can't get into SugarCRM mysql

    I finally got in. For some reason--I'm guessing it has to do with how sugarcrm starts mysql--I had to use the -h 127.0.0.1 switch, based on a suggestion from a different forum.

    So, from /opt/sugar..../mysql/bin> mysqldump -u root -p -h 127.0.0.1 >/home/eric/Desktop/sugar_mysql_backup.sql

    Why that would be necessary I can't guess, except perhaps has something to do with how Sugarcrm runs mysql.

  5. #5
    sugar43geek is offline Member
    Join Date
    Jun 2011
    Posts
    5

    Default Re: can't get into SugarCRM mysql

    @AlexAv
    Acc to ps -ef, that is the "path to socket", I would think:


    lagohsl03:~ # ps -ef |grep mysql*
    root 3170 1 0 Jun05 ? 00:00:00 /bin/sh /opt/sugarcrm-5.5.4/mysql/bin/safe_mysqld --port=3306 --socket=/opt/sugarcrm-5.5.4/mysql/tmp/mysql.sock --old-passwords --datadir=/opt/sugarcrm-5.5.4/mysql/data --log-error=/opt/sugarcrm-5.5.4/mysql/data/mysqld.log --pid-file=/opt/sugarcrm-5.5.4/mysql/data/mysqld.pid
    mysql 3338 3170 0 Jun05 ? 00:00:00 /opt/sugarcrm-5.5.4/mysql/bin/mysqld --basedir=/opt/sugarcrm-5.5.4/mysql --datadir=/opt/sugarcrm-5.5.4/mysql/data --user=mysql --pid-file=/opt/sugarcrm-5.5.4/mysql/data/mysqld.pid --skip-external-locking --port=3306 --socket=/opt/sugarcrm-5.5.4/mysql/tmp/mysql.sock --old-passwords
    root 13044 13027 0 12:02 pts/0 00:00:00 grep mysql*
    lagohsl03:~ # cd /opt/sugarcrm-5.5.4/mysql/tmp
    lagohsl03:/opt/sugarcrm-5.5.4/mysql/tmp # ls

  6. #6
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: can't get into SugarCRM mysql

    Are you using the SugarStack or something, cant really tell from the paths. If not how did you load Apache/Mysql on the system?
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  7. #7
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: can't get into SugarCRM mysql

    This should help


    mysql -u root -p 123 -s /opt/sugarcrm-5.5.4/mysql/tmp/mysql.sock
    Letrium ltd. - Only high quality service
    http://letrium.com

  8. #8
    sugar43geek is offline Member
    Join Date
    Jun 2011
    Posts
    5

    Default Re: can't get into SugarCRM mysql

    From here and there I've pieced together this insight:

    Apparently the mysql command line client (running 'mysql' or 'mysqldump' or other such) on linux by default looks for a socket at /tmp/mysql.sock.

    Sugarcrm creates its own socket for communicating with its "pet" mysql, which is why AlexAv's suggested command-cum-socket would work.

    Using the -h 127.0.0.1 switch induces the mysql command line client to make a tcp/ip connection to localhost rather than using the socket. This is what finally worked for me.

    Apache, like mysql, has been installed and is running under the auspices of Sugarcrm. For example this is one of the returned processes:
    root 3405 1 0 13:37 ? 00:00:00 /opt/sugarcrm-5.5.4/apache2/bin/httpd -f /opt/sugarcrm-5.5.4/apache2/conf/httpd.conf

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SugarCRM with MySQL over SSL
    By mudasir in forum Help
    Replies: 2
    Last Post: 2012-01-10, 02:58 PM
  2. Best setup for sugarcrm. Vm sugar & Vm mysql or bare metal sugarcrm and mysql
    By kblackwell in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2010-11-12, 06:12 PM
  3. Connectiing MySQL GUITools (win) to view SugarCRM schema on MYSQL-UBUNTU
    By paulval in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2008-03-06, 08:10 PM
  4. Replies: 2
    Last Post: 2007-07-30, 02:58 AM
  5. MySQL 4.1.14 & SugarCRM 4.5
    By dgarner98 in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-02-06, 06:27 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
  •