Cannot connect to mysql database step 3

Discussion in 'Installation' started by capstone, Jan 7, 2011.

  1. capstone

    capstone New Member

    Joined:
    Jan 7, 2011
    Messages:
    2
    I created the mysql database using hostgators cpanel. Database name used is amember and the database prefix was supplied by MySQL. Added a user and passwd with all privileges. Everything seems to be submitted correctly in step 2 of 4 but an error comes back "cannot connect to mysql for the user that was setup.

    What could I be doing wrong?
  2. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    You might have called your database 'amember' but check back in 'Cpanel' and you will probably find the database is called 'xxxxx_amember' as something like the Cpanel user name and a '_' will prefix your db name.
  3. capstone

    capstone New Member

    Joined:
    Jan 7, 2011
    Messages:
    2
    mysql data base is xxxxxxxx_amember. (the x's represent the prefix that cpanel adds for you when a mysql db is created.


    My inputs to step 2 are:

    localhost
    amember
    myusername for the mysql db
    mypassword for the mysql db
    xxxxxxxxxx_

    As far as I understand the instructions for step 2 that would be the correct inputs. However I cannot connect to mysql.
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    you may also need xxxxx_ for your mysqal db name as well.

Share This Page