【发布时间】:2017-02-17 12:58:19
【问题描述】:
在我运行 php artisan migrate 之后,这是我得到的错误。
[Illuminate\Database\QueryException]
SQLSTATE[HY000]: General error: 262 General SQL Server error: Check message
s from the SQL Server [262] (severity 14) [(null)] (SQL: create table "migr
ations" ("migration" nvarchar(255) not null, "batch" int not null))
[PDOException]
SQLSTATE[HY000]: General error: 262 General SQL Server error: Check message
s from the SQL Server [262] (severity 14) [(null)]
这是我使用 Ubuntu 将 Laravel 连接到 MS SQL Server 的漫长道路。
【问题讨论】:
-
您是否安装了 freeTDS 和相应的驱动程序?例如。 - sudo apt-get install php5-sybase php5-odbc freetds-common
-
尝试在 tds 配置文件中更改 TDS 版本:5.0 到 7.0 或 8.0
-
@8bitreboot 这也是我的问题。检查这个stackoverflow.com/questions/39902768/…
标签: php sql-server laravel ubuntu