0

When running php aritisan migrate in the cli it works fine. It creates the tables and the dependencies. But as soon as I try to connect via an ajax call through the web page, I receive the following error:

class:"PDOException" file:"/home/vagrant/webroot/LaraQ/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php" line:68

I am using the odbc driver connecting to Intersystems Cache. This is running on a vagrant box (Homestead) and I have PHP 7.2 running.

sam
  • 167
  • 8
user1451517
  • 43
  • 2
  • 5

1 Answers1

0

Follow these steps

sudo apt-get install php5-mssql

Update /etc/freetds/freetds.conf

[global]  
# TDS protocol version
; tds version = 4.2
tds version = 8.0
client charset = UTF-8`

Add this line to php.ini

mssql.charset = "UTF-8"

Reference: thread

Sauer Voussoir
  • 111
  • 2
  • 12