Hola, trabajo en Ubuntu con cakephp 2.5 y necesito conectarme a una Base de Datos en un Servidor de Windows con SQLServer 2005.
-- El problema es que desde el Framework no puedo conectarme, me muestra el siguiente Mensaje:
CakePHP is NOT able to connect to the database.
Datasource class SqlServer could not be found.
Datasource class SqlServer could not be found.
Y mi database es así:
public $default = array(
'datasource' => 'Database/SqlServer',
'persistent' => false,
'host' => '10.0.0.138',
'login' => 'sa',
'password' => 'sa',
'database' => 'SBDALCD3',
'prefix' => '',
//'encoding' => 'utf8',
);
La conexión al servidor la tengo habilitada ya que si me conecto con lo siguiente:
$usr = "sa";
$psw = "sa";
$server = "10.0.0.138";
$dbname = "SBDALCD3";
$instance = "SRVTESTBJRM03";
$link = mssql_connect($server, $usr,$psw);
if (!$link) {
echo'Could not connect';
die('Could not connect: ' . mssql_error());
}
echo'Successful connection';
mssql_close($link);
Me da éxito y puedo consultar las tablas.
Me estará faltando algún archivo en cakephp? (baje la version completa 2.5).... si alguno tiene idea de porque no puedo conectarme con cakephp a un sqlserver 2005 me daría una mano muy grande!!
Saludos!!!
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:
Post a Comment