catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.83k stars 1.15k forks source link

how to connect oracle thank? #765

Closed chenbaicheng closed 5 years ago

chenbaicheng commented 6 years ago

$database = new Medoo([ 'database_type' => 'oracle', 'database_name' => 'gxpt_zjsb', 'server' => '19.14.7.60', 'username' => 'gxpt_zjsb', 'password' => 'oracle2018', ]); It's not work .

dfanica commented 5 years ago

try oci8 instead of oracle

chenbaicheng commented 5 years ago

thanks @dfanica

catfan commented 5 years ago

The option of 'database_type' => 'oracle' is correct. You may check out the dsn string or the error output.

chenbaicheng commented 5 years ago

@catfan thanks , i think oracle is not friendly to user