Setup - Stuck at MySQL

Discussion in 'Installation' started by jamesab306, Jun 2, 2011.

  1. jamesab306

    jamesab306 New Member

    Joined:
    May 18, 2011
    Messages:
    2
    I've configured MySQL on the server, created a database for amember, added the following to Setup Page 2:

    MySQL Host: localhost
    MySQL Database: aMember
    MySQL Username: root
    MySQL Password: **********
    MySQL Tables Prefix: amember_

    When I click on "Next" Page 3 says:
    Cannot connect to mysql (No such file or directory)

    I opened a ticket with the CGI Central Help Desk 8 days ago. Russian business hours don't work well with California business hours and they have not been able to provide me with a solution in spite of all the questions they've asked and all the answers I've given.
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    1. who is your host?

    2. are you sure that localhost is the correct MySQL host name you should be using?

    3. are you sure aMember is the correct MySQL Database name. Specifically, the mixed case as well as whether you need to prepend it with your account name (ex. james_amember). I would send a note to your host to verify exactly what your MySQL settings should be.

    ...on a side note, you should set up a unique mysql user for your aMember as using your root account can/will lead to issues.
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    James,
    Sorry for delay with this ticket resolution.
    Error that you mentioned in your first message:
    Cannot connect to mysql (no such file or directory)

    Can be because of wrong php configuration.
    This happen when you install MySQL and configure it to use different socket then default. Then if in php configuration you have different default socket specified, php will generate File not found error.
    Try to login into your MySQL server console and run this command: status;
    It will generate output like in example:
    mysql> status;
    --------------
    mysql Ver 14.14 Distrib 5.1.54, for debian-linux-gnu (x86_64) using readline 6.2

    Connection id: 6877
    Current database:
    Current user: root@localhost
    SSL: Not in use
    Current pager: stdout
    Using outfile: ''
    Using delimiter: ;
    Server version: 5.1.54-1ubuntu4 (Ubuntu)
    Protocol version: 10
    Connection: Localhost via UNIX socket
    Server characterset: latin1
    Db characterset: latin1
    Client characterset: latin1
    Conn. characterset: latin1
    UNIX socket: /var/run/mysqld/mysqld.sock
    Uptime: 6 days 21 hours 14 min 58 sec

    Write down UNIX socket string, then open php.ini and check for mysql.default_socket setting.
    Both settings should be the same exactly.
    If this will not help, feel free to contact me in Skype: alexander_cgicentral
  4. jamesab306

    jamesab306 New Member

    Joined:
    May 18, 2011
    Messages:
    2
    Setup - Stuck at MySQL-was worried we picked the wrong app

    Alexander,
    We see you know what you are doing, was worried we picked the wrong app. We should have started here 8 days ago...
    You have got us on the right path now, I'll keep you posted.
    James-

Share This Page