Subject | Firebird 3 with PHP 7 ubuntu |
---|---|
Author | |
Post date | 2017-05-12T19:14:16Z |
But when I try to access with the code:
<? Php
print_r (PDO::getAvailableDrivers ());
echo '<hr>';
$PDO = new PDO ('firebird:dbname=111.111.11.111/3050:test;charset=WIN1252', $user, $pass);
print_r($ PDO->getAttribute(PDO::ATTR_CONNECTION_STATUS));
?>
Returns:
Array ([0] => firebird [1] => mysql)
SQLSTATE [HY000] [335544472] Your user name and password are not defined. Ask your database administrator to set up a Firebird login.
I noticed that when I ran the command: apt-get install php7.0-pdo-firebird
He installed /usr/lib/firebird/2.5
What am I doing wrong?
Doing this remotely with ibexpert I can connect without error.
Attempting to connect to:
111.111.11.111/3050:teste
Connecting ... Passed!
Server version: LI-V6.3.0.32483 Firebird 3.0
Attempting to connect to services manager ... Passed!
Disconnecting from database ... Passed!