ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Database issue

October 19, 2012 12:36pm

Subscribe [1]
  • #1 / Oct 19, 2012 12:36pm

    Etheya

    213 posts

    Getting an error on a new site…

    A Database Error Occurred

    Unable to connect to your database server using the provided settings.

    Filename: core/EE_Config.php

    Line Number: 211

     

    Ive ran the dbtest.php and thats connecting fine.. so it must be something else… just dont know what.. any tips? Ive tried re submitting the file in question.

  • #2 / Oct 19, 2012 1:34pm

    Etheya

    213 posts

    Has to be something with this file surely… for the record its on a clients 123reg hosting… ive ran the wizard too and thats working fine everything is there.

    So just dont get it :-(

  • #3 / Oct 19, 2012 1:55pm

    Etheya

    213 posts

    The line in question in that file is

    $query = $EE->db->get_where('sites', array('site_id' => $site_id))
  • #4 / Oct 22, 2012 4:03pm

    Dan Decker

    7338 posts

    Hi Etheya,

    Database connectivity is handled in /system/expressionengine/config/database.php - make sure your values are set properly there.

    Make sure the variables there are wrapped in single quotes rather than double quotes.

    If database.php checks out, let me know and we’ll get in for a closer look.

    Cheers,

  • #5 / Oct 23, 2012 5:29am

    Etheya

    213 posts

    Hi Dan,

    Couldnt get it sorted so we sorted out entirely new hosting and everything worked a treat, sorry was on a tight schedule to have it uploaded live.

  • #6 / Oct 24, 2012 11:43am

    Dan Decker

    7338 posts

    Hi Etheya,

    Nothing beats quality hosting!

    Is there anything else I can assist you with?

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases