Support the ongoing development of Laravel.io →
Configuration Database Eloquent
Last updated 2 years ago.
0

see if php5-pdo is installed

'default' => 'sqlsrv',

and

		'sqlsrv' => array(
			'driver'   => 'sqlsrv',
			'host'     => 'localhost',
			'database' => 'database',
			'username' => 'root',
			'password' => '',
			'prefix'   => '',
		),
Last updated 2 years ago.
0

yep php5-pdo installed...

zypper se PDO

Loading repository data... Reading installed packages...

S | Name | Summary | Type --+---------------------------------+-----------------------------+-------- i | php5-pdo | PHP5 Extension Module | package

and database config

'hr' => array( 'driver' => 'sqlsrv', 'host' => 'XXX.XXX.XXX.XXX', 'database' => '', 'username' => '', 'password' => '********', 'prefix' => '', ),

but page shows...

PDOException could not find driver

trying a brand new server at moment

Last updated 2 years ago.
0

update i can confirm freeTDS is working using tsql and also unixOBDC using isql ...

Last updated 2 years ago.
0

ok i win at last using laravel 4.1 and https://github.com/ccovey/odbc-driver... but now have issue with 3rd party db using spaces in field names aaaarrrrggghhh....

close this

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.