0

Attempting to connect to an Oracle database with yajra/laravel-oci8, below is the configuration. Note that I've also installed the instant client 11g corresponding to the bit version of Windows Server. I've ensured that the 11g ext is enabled in the php.ini.

demo

Spent 4 days on this now, does anybody have any idea what's going on?

I don't even get an error message, just a stack dump which is attached.

'oracle' => [
    'driver'        => 'oracle',
    'tns'           => 'LISTENER',
    'host'          => '192.168.39.73',
    'port'          => env('DB_PORT', '1521'),
    'database'      => 'QORA',
    'username'      => 'ETEST',
    'password'      => 'ETEST',
    'charset'       => env('DB_CHARSET', 'AL32UTF8'),
    'prefix'        => env('DB_PREFIX', ''),
    'prefix_schema' => env('DB_SCHEMA_PREFIX', ''),
],
4

1 回答 1

0

您的错误消息显示您正在尝试连接端口 3306,这是标准 MySQL 端口。根据您的配置,您正在查看文件中的DB_PORT.env,并备份该文件1521是否不存在。

我的猜测是您的.env文件具有以下行:

DB_PORT=3306

您要么需要注释或删除该行,要么更改33061521.

于 2016-08-25T14:36:30.460 回答