开发者

How to connect Cakephp 1.3 with MS SQLServer 2008?

开发者 https://www.devze.com 2023-04-10 15:51 出处:网络
I can\'t connect to MSSQL Server. I\'ve been researching for 2 days, yet I can\'t find any useful resources. This is the error I\'m getting:

I can't connect to MSSQL Server. I've been researching for 2 days, yet I can't find any useful resources. This is the error I'm getting:

URL rewriting is not properly configured on your server.

Help me configure my database. I don't / can't use URL rewriting:

Your tmp directory is writable. The FileEngine is being used for caching. To change the config edit APP/config/core.php Your database configuration file is present.

Here's my database config file:

class DATABASE_CONFIG { 
    var $default = array(
        'driver' => 'mssql',
        'persistent' => false, 
        'host' => 'Charmae-PC\Charmae', 
        'login' => 'sa', 
        'password' => 'pass',
        'database' =>开发者_开发技巧 'obbm',
        'prefix' => '',
        'port' => '',
    );
}

What should I do?


You need to configure your database with cakephp[windows php driver]. I don't know which version cakephp are you using. But for any version of cakephp and wampserver windows php drivers are different.
for more information Download the sqlsrv driver from here

and then the rest of configuration.
By the way you have to use sqlsrv driver for config/database.php

var $default = array(
    'driver' => 'sqlsrv',
     ...
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号