MySQL connection problem

  • I'm sorry if this seems to be a stupid question (as I am new to installation) but I'm getting an error about MySQL connection and I'm wondering if any of you guys have steps to getting database username, host, and password.

    I don't know if this helps but I'm using cpanel w/ hostgators.

    I would provide a screenshot but I'm guessing some of the information on the screen should be private.

  • Create MySQL Database and User

    • Log into cPanel.
    • In the Databases section, click the MySQL Database Wizard icon.
    • For Step 1: Create A Database, enter the database name and click Next Step.
    • For Step 2: Create Database Users, enter the database user name and password and click Create User.
    • For Step 3: Add User to the Database, click the All Privileges checkbox and click Next Step.
    • For Step 4: Complete the installation, make note of the database name, username and password.

    For host, usually use "localhost".