How to set up XAMPP for Sql Server 2014

Asked

Viewed 2,682 times

0

Can anyone teach me how to set up XAMPP for Sql Server 2014? I’m in a project that doesn’t allow Mysql (PHPMYADMIN).

2 answers

1

Careful not to download the wrong drivers, I spent a lot doing everything right, various tutorials and nothing worked, until I formatted the pc.

After long 4 days trying, finally discovered the error, I was using the drivers in the Windows version, which in my case is 64x, however the Xamp was 86x, I should have used the 86x drivers in the ... php ext folder\

1

Flavio, you can download the drivers do SQL Server (https://www.microsoft.com/en-us/download/details.aspx?id=20098) or use the PDO.

Put the files in c:\xampp\php\ext

In the php.ini define extensions as an example:

extension=php_sqlsrv_56_ts.dl 
extension=php_pdo_sqlsrv_56_ts.dll

NOTE: If I’m not mistaken, in PHP 7 the drivers are not working. I’ve been running at 5.6 normally.

  • Welcome to XAMPP for Windows 7.0.21 I will switch to version 5.6 then.. Thank you Raoni BZ!

  • Flávio, do in 5.6 (Version 3.2 Supports PHP 5.6, 5.5, and 5.4 on Windows) because this is sure that it is working and so you get familiar with the process, then you can try in 7.0 (Version 4.0 Supports PHP 7.0+ on Windows and Linux). Don’t forget to give us a feedback, so help the next !

Browser other questions tagged

You are not signed in. Login or sign up in order to post.