0
我试图设置quickapp-cms和croogo cms与蛋糕的PHP 2.8.6和sqlserver 2016。它适用于MySQL,但与SQL服务器失败。我遇到以下错误:cakephp cms与sqlserver错误
cake php 2.8.6
php 5.6.23
Ms sql server
Microsoft SQL Server Management Studio 13.0.15700.28
Microsoft Analysis Services Client Tools 13.0.1700.68
Microsoft Data Access Components (MDAC) 6.2.9200.16384
Microsoft MSXML 3.0 6.0
Microsoft Internet Explorer 9.10.9200.17607
Microsoft .NET Framework 4.0.30319.42000
Operating System 6.2.9200
====================================================================================
Unable to connect to database, please check your information. Details:
Connection to database could not be established: SQLSTATE[IMSSP]: An invalid encoding was specified for SQLSRV_ATTR_ENCODING.
================================================================================
我的数据库配置:
'datasource' => 'Database/Sqlserver',
'persistent' => false,
'host' => 'COLLONMADE\SQLEXPRESS',
'login' => 'sa',
'password' => 'root',
'database' => 'cro',
'prefix' => '',
'encoding' => 'utf8',
http://stackoverflow.com/questions/20042778/cakephp-sqlserver-encoding – ndm
我已经试过了,但问题仍然存在 – apurv
尝试更改编码值,即'UTF8','utf-8','iso_1 '等 – SaidbakR