Need your help in MYSQL while installing wordpress on hostgator

Discussion in 'MySQL' started by admin3633, Oct 29, 2009.

  1. #1
    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'dbname');

    /** MySQL database username */
    define('DB_USER', 'username');

    /** MySQL database password */
    define('DB_PASSWORD', '*******');

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    While installing wordpress on hostgator what do u enter in MySQL hostname in wp-confing.php file.

    I want to ask what i should enter in place of localhost.
    If i am not using their software for installation of wordpress.

    Thank you and Best Regards
     
    admin3633, Oct 29, 2009 IP
  2. GatorJay

    GatorJay Peon

    Messages:
    23
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You should not need to change localhost as long as you are hosting both the site and the database on the same account with us. Since you are a customer, feel free to come into our livechat at anytime to get a quick answer to a question like this! We're open 24/7. :)
     
    GatorJay, Oct 29, 2009 IP
  3. micksss

    micksss Notable Member

    Messages:
    4,427
    Likes Received:
    268
    Best Answers:
    1
    Trophy Points:
    285
    #3
    If your database is on the same server leave it as localhost. Was there a problem when you left it as localhost?
     
    micksss, Oct 29, 2009 IP
  4. admin3633

    admin3633 Well-Known Member

    Messages:
    604
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    130
    #4
    Yeh it was showing database connectivity error...
     
    admin3633, Oct 29, 2009 IP
  5. micksss

    micksss Notable Member

    Messages:
    4,427
    Likes Received:
    268
    Best Answers:
    1
    Trophy Points:
    285
    #5
    What was the exact error? Have you contacted HG support?
     
    micksss, Oct 29, 2009 IP
  6. donnyanm

    donnyanm Peon

    Messages:
    240
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You're probably...

    1. leaving a space at the end of either the db or un if you're pasting it.
    2. not using the correct format of cpanelname_dbname and cpanelname_dbuser

    Why not use fantastico and have it set all of that up for you?
     
    donnyanm, Nov 12, 2009 IP
  7. Dave McLovin

    Dave McLovin Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If you are still having trouble I posted a how to about this here http://bestwebhostingreview.org/site-building/installing-wordpress-hostgator
    Cheers
     
    Dave McLovin, Nov 28, 2009 IP