Results 1 to 3 of 3

Thread: Database Connection Problem

  1. #1
    Donor zigstonk's Avatar
    Join Date
    May 2010
    Location
    Tampa Bay, Florida
    Posts
    44
    Thanks
    29
    Thanked 3 Times in 2 Posts

    Default Database Connection Problem

    I'm getting the following installation error:

    --------------
    Warning: Error establishing mySQL database connection. Correct user/password? Correct hostname? Database server running? in /home/***/public_html/***/libs/extensions/ezSQL/mysql/ez_sql_mysql.php on line 93

    Warning: mySQL database connection is not active in /home/***/public_html/***/libs/extensions/ezSQL/mysql/ez_sql_mysql.php on line 125
    --------------

    - Hosting through Hostgator reseller acct
    - set up under subdomain <xxx.domain.com)
    - MySQL version - 5.1.30
    - PHP version - 5.2.9
    - phpmyadmin - 3.2.4

    > Followed the install instructions specifically. Deleted everything. Started over twice.
    > Contacted HostGator support - who offered this insight so far:

    ------------------
    HGator: This is what was returned:

    * Constructor - allow the user to perform a qucik connect at the
    * same time as initialising the ezSQL_mysql class
    */

    function ezSQL_mysql($dbuser='', $dbpassword='', $dbname='', $dbhost='localhost')

    HGator: It seems the script has not been configured yet.
    -------------------

    here's my settings.php setup (which was configured prior to contacting HGator):

    // EDIT THE FOLLOWING ONLY

    // Database details
    define("DB_USER", 'myname_username'); // Add your own database details
    define("DB_PASSWORD", 'myname_password');
    define("DB_NAME", 'myname_hotaru');
    define("DB_HOST", 'localhost'); // You probably won't need to change this

    define("DB_PREFIX", 'hotaru_'); // Database prefix, e.g. "hotaru_"
    define("DB_LANG", 'en'); // Database language, e.g. "en"
    define("DB_ENGINE", 'MyISAM'); // Database Engine, e.g. "MyISAM"
    define('DB_CHARSET', 'utf8'); // Database Character Set (UTF8 is Recommended), e.g. "utf8"
    define("DB_COLLATE", 'utf8_unicode_ci'); // Database Collation (UTF8 is Recommended), e.g. "utf8_unicode_ci"

    // Paths
    define('BASEURL', "http://****.com/"); // e.g. http://example.com/
    // Needs trailing slash (/)

    // DON'T EDIT ANYTHING BEYOND THIS POINT
    ------------------------------------------

    Any insight/help is greatly appreciated.

  2. #2
    Senior Member louis's Avatar
    Join Date
    Apr 2010
    Location
    Fugetaboutit!
    Posts
    118
    Thanks
    35
    Thanked 44 Times in 28 Posts

    Default

    I don't think you need "define("DB_PASSWORD", 'myname_password');" Just insert your "password" e.g. define("DB_PASSWORD", 'password');
    Louis
    Its Who I Am | My Hotaru site coming soon

  3. Thanked by:


  4. #3
    Donor zigstonk's Avatar
    Join Date
    May 2010
    Location
    Tampa Bay, Florida
    Posts
    44
    Thanks
    29
    Thanked 3 Times in 2 Posts

    Default

    Louis - thanks that did the trick!! here's what worked:

    // Database details
    define("DB_USER", 'myname_username'); // Add your own database details
    define("DB_PASSWORD", 'password');
    define("DB_NAME", 'myname_hotaru');
    define("DB_HOST", 'localhost'); // You probably won't need to change this

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Charset Problem
    By Tony in forum How-To and Troubleshooting
    Replies: 8
    Last Post: 01-27-2011, 06:37 AM
  2. UTF-8 problem
    By ali127 in forum How-To and Troubleshooting
    Replies: 4
    Last Post: 05-13-2010, 07:45 AM
  3. CSS Minify Problem
    By Nick in forum How-To and Troubleshooting
    Replies: 8
    Last Post: 04-30-2010, 07:29 PM
  4. I have a problem with SWCMS...
    By leipeic in forum Other
    Replies: 2
    Last Post: 01-02-2010, 02:47 AM
  5. Apostrophes problem
    By nothingman in forum How-To and Troubleshooting
    Replies: 3
    Last Post: 10-31-2009, 09:12 AM

Tags for this Thread

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
  •