jacquestvanzuydam / laravel-firebird

Firebird Illuminate package for Laravel 5
63 stars 93 forks source link

I/O error during "open" operation for file #50

Closed igorfaria6 closed 7 years ago

igorfaria6 commented 7 years ago

public function index() { return DB::connection('firebird')->table('cliente')->get(); } I'm get error for this code using laravel 5.3. obs: the file DB_EX.GDB have 777 permission.

PDOException in Connection.php line 90: SQLSTATE[HY000] [335544344] I/O error during "open" operation for file "/storage/DB_EX.GDB"

.env: DB_CONNECTION=firebird DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=/storage/DB_EX.GDB DB_USERNAME=ex DB_PASSWORD=keyex DB_CHARSET=UTF8

config/app: 'firebird' => [ 'driver' => 'firebird', 'host' => env('DB_HOST', '127.0.0.1'), 'database' => env('DB_DATABASE', '/storage/firebird/APPLICATION.FDB'), 'username' => env('DB_USERNAME', 'sysdba'), 'password' => env('DB_PASSWORD', 'masterkey'), 'charset' => env('DB_CHARSET', 'UTF8'), ],

Anyone have any idea how to solve it?

igorfaria6 commented 7 years ago

I found the mistake. The problem is a database directory configuration.