Keywords: PhpBB - OS X - Technical issue - Other
Description:
I've got several Bitami apps running on my Mac (some of which use Bitnami's Mysql) in a purely local way, with no internet involved.
I've just started creating another one consisting as of now of a short and unique file :
<?php
phpInfo();
$dbhost = 'localhost';
$dbport = '8087';
$dbname = 'hex_database';
$dbuser = 'root';
$dbpasswd = 'yUJKL78L91P';
try {
$pdo = new PDO("mysql:host=$host;port=$dbport;dbname=$dbname", $username, $password);
} catch (PDOException $e) {
print "Error!: " . $e->getMessage() . "
";
die();
}
I get a "Error!: SQLSTATE[HY000] [2002] No such file or directory".
I know that MySQL is open and running because the other apps (including PhpMyAdmin) are working.
I double-checked the database name in PhpMyAdmin.
Any idea about what may be causing the problem here ? What other checks may I perform ?