All database settings are set to 'A' I'm encountering a very weird problem where my database settings look like this in database.inc:openConnection()

array(1) {
  ["default"]=&gt;
  array(6) {
    ["driver"]=&gt;
    string(1) "A"
    ["database"]=&gt;
    string(1) "A"
    ["username"]=&gt;
    string(1) "A"
    ["password"]=&gt;
    string(1) "A"
    ["host"]=&gt;
    string(1) "A"
    ["port"]=&gt;
    string(1) "A"
  }
}


It's after I moved the site to a new host with Ubuntu 14.04, so PHP and MySQL are now on a different version.

Another related strange thing is that drush sql-connect is not returning anything.

The result of global $databases; var_dump($databases); looks normal.
Silly me. I copied some lines from D6 settings.php. After adding an extra ['default'] here: $databases['default']['default'] = array(... things are working fine again.



Note 1: Probably good to not delete this question as someone else might run into something similar at some point.

Note 2: Will be nice if Drupal 8+ will have a more informative way of error reporting.