On Wed, Dec 8, 2010 at 6:01 AM, Rory <[email protected]> wrote:
> Hi guys,
>
> I've been struggling with a problem for the past few days and there
> seems to be no clear solution on the internet.
>
> I have CakePHP 1.3 installed on an IIS6.0 web server under PHP 5.2.
> Everything else works fine (thanks to a tutorial I saw in the Bakery),
> however when trying to connect to my database I get the "Cake is NOT
> able to connect to the database".
>
> My SQL server is Microsoft SQL Server 2000 and it's running on the
> local machine.
>
> PHP 5.2 comes with the MSSQL extension by default and my phpinfo file
> shows that it is installed and working.
>
> This is how my current database config looks (password is hidden for
> security reasons):
>
> var $default = array(
>        'driver' => 'mssql',
>        'persistent' => 'false',
>        'host' => 'localhost',
>        'port' => 1433,
>        'login' => 'sa',
>        'password' => '-hidden-',
>        'database' => 'test',
>        'prefix' => ''
>        );
>
> All the parameters (database, login, etc) are correct yet Cake just
> will not connect to the server.
>
> Would greatly appreciate a solution - as a quick google search will
> show you, there are many others that have a similar problem.

Can you connect with a non-Cake PHP script? See anything in the server's logs?

It's been almost  a decade that I've had to run anything on Windows,
so I can't (shouldn't, really) give you any more detailed advice.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to