In Ubuntu 12.04 guest on Windows 8.1 host (using VirtualBox), a cloned application cannot connect to the host's database. Regardless of settings in parameter.yml the following occurs at login:
SQLSTATE[28000] [1045] Access denied for user 'projectmana'@'localhost' (using password: YES)
NB: login credentials are different from database credentials.
parameters.yml (in part)
database_driver: pdo_mysql
database_host: 192.168.168.205
database_port: null
database_name: projectmana
database_user: root
database_password: root's password
I have confirmed that guest OS has pdo_mysql installed. MySQL client in guest OS can connect to mysql at host's address with either root or projectmana credentials. I have also attempted the solution of adding PDO parameters as shown here without success.
Update
I've also confirmed that PDO can connect to the host via
<?php
$dsn = 'mysql:dbname=projectmana;host=192.168.168.205';
$user = 'root';
$password = 'some password';
try {
$dbh = new PDO($dsn, $user, $password);
} catch (PDOException $e) {
echo 'Connection failed: ' . $e->getMessage();
exit;
}
echo "We're connected!";