Thursday, September 18, 2014

Cannot connect to sqlserver

I got this error :

CakePHP is NOT able to connect to the database.

Database connection "Sqlserver" is missing, or could not be created.

Details :

  • CakePHP 2.5.4
  • Wamp server 32-bit
  • Dreamweaver CS6

On my details.php

class DATABASE_CONFIG {    public $default = array(      'datasource' => 'Database/Sqlserver',      'persistent' => false,      'host' => 'localhost\MSSQLSERVER',      'database' => 'testing'  );

I have load both the extension on ext folder (apache & php) and on php.ini

extension=php_sqlsrv_55_ts.dll  extension=php_pdo_sqlsrv_55_ts.dll

Searched everywhere but still cannot connect to sqlserver.

note : I can connect to MySQL but not SQLServer

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: