Connecting to SQL Server on Parallels Desktop with PHP
Posted
by
Zen Savona
on Server Fault
See other posts from Server Fault
or by Zen Savona
Published on 2011-02-02T10:40:27Z
Indexed on
2012/11/25
17:06 UTC
Read the original article
Hit count: 273
well I recently bought a Mac and am using it as my primary computer.
Because I am required to work with MSSQL via PHP, I have installed Parallels Desktop and run Server 2008 R2 on it. I am using the same mixed mode authentication which I previously had on windows.
When I attempt to connect to the server with PHP using either a new test file or my old code, it just doesn't find the server.
I have tried running PHP on the XP install with parallels, and using the hostname as COMPUTERNAME\SQLEXPRESS
, LOCALIP\SQLEXPRESS
localhost
localip
etc, PHP never finds the server.
Also note that I can connect to the database server using Management Studio without problems, so SQL Server is running.
Please note that both PHP and MSSQL are running within the virtualised environment.
Any contribution is appreciated
© Server Fault or respective owner