Laravel 5.4迁移错误服务器网络接口系统找不到指定的文件

时间:2017-06-11 18:27:46

标签: php laravel-5 sqlsrv

我在Windows 10上安装了laravel 5.4,我正在使用SQL localdb,我无法连接到数据库。我在这台计算机上复制的laravel 5.2的另一个版本连接正常。

运行“php artisan migrate”时出现以下错误:

git fsck --unreachable --dangling | sed -n -e '/^unreachable commit / { s/unreachable commit \(.*\)/tag_\1 \1/; p} ' | xargs -L1 git tag

通过安装ODBC 13驱动程序和SQL命令行工具解决了此错误,但导致出现以下新错误:

[Illuminate\Database\QueryException]
  SQLSTATE[08001]: [Microsoft][ODBC Driver 13 for SQL Server]SQL Server Network Interfaces: The system cannot find the file specified.
   (SQL: create table "migrations" ("id" int identity primary key not null, "migration" nvarchar(255) not null, "batch" int not null))



  [PDOException]
  SQLSTATE[08001]: [Microsoft][ODBC Driver 13 for SQL Server]SQL Server Network Interfaces: The system cannot find the file specified.

我正在使用:
PHP 7.0.10
SQL Server Express LocalDB命令行工具版本13.0.1601.5
Laravel Framework 5.4.25
Microsoft Windows 10 Home版本:10.0.15063 N / A Build 15063 \

那么,我该如何解决这个问题?

0 个答案:

没有答案