Podłącznie do MS SQL 2012 - błąd połączenia |
Podłącznie do MS SQL 2012 - błąd połączenia |
8.06.2013, 18:35:42
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 006 Pomógł: 111 Dołączył: 23.07.2010 Skąd: Kraków Ostrzeżenie: (0%) |
Cześć
Próbuję podłączyć się pod server MS SQL 2012 po localhost. Robieto wszystko na wirtualnej maszynie, żeby było jak najmniej problemów. Świeży Windows, świeży MS SQL Server 2012 i XAMPP w wersji 1.8.1 . Dodatkowo ściągnięty driver: http://www.microsoft.com/en-us/download/de...s.aspx?id=20098 Wrzucone dll do folderu ext i dodane do php.ini -> apache uruchomił się jak należy. Teraz kod PHP:
Otrzymuje taki błąd: Cytat Connection could not be established. Array ( [0] => Array ( [0] => 08001 [SQLSTATE] => 08001 [1] => 87 [code] => 87 [2] => [Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: Connection string is not valid [87]. [message] => [Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: Connection string is not valid [87]. ) [1] => Array ( [0] => HYT00 [SQLSTATE] => HYT00 [1] => 0 [code] => 0 [2] => [Microsoft][SQL Server Native Client 11.0]Login timeout expired [message] => [Microsoft][SQL Server Native Client 11.0]Login timeout expired ) [2] => Array ( [0] => 08001 [SQLSTATE] => 08001 [1] => 87 [code] => 87 [2] => [Microsoft][SQL Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [message] => [Microsoft][SQL Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. ) ) Wszystko związane z podłączeniem z zewnatrz (chociaż robię to na localhost) zrobiłem, a przynajmniej co google podpowiedziało. W czym szukać problemów? Ten post edytował IceManSpy 8.06.2013, 18:41:32 -------------------- |
|
|
Wersja Lo-Fi | Aktualny czas: 20.04.2024 - 03:53 |