laravel连sql server报invalid handle returned问题解决方案
Posted yuanxiaoping_21cn_com
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了laravel连sql server报invalid handle returned问题解决方案相关的知识,希望对你有一定的参考价值。
https://github.com/Microsoft/msphpsql/issues/116
4.1.1驱动下载地址
https://github.com/Microsoft/msphpsql/releases/tag/v4.1.1-Windows
还有一说是
在数据库配置中加入 ‘pooling’ => false
‘sqlsrv’ => [
‘driver’ => ‘sqlsrv’,
‘host’ => ‘xxx’,
‘database’ => ‘xxx’,
‘username’ => ‘xxx’,
‘password’ => ‘xxx’,
‘charset’ => ‘utf8’,
‘prefix’ => ”,
‘pooling’ => false
],
或者
注释掉port这一行
‘connections‘ => [
‘sqlsrv‘ => [
‘driver‘ => ‘sqlsrv‘,
‘host‘ => env( ‘DB_HOST‘ ),
‘port‘ => ‘‘, // THIS LINE
‘database‘ => env( ‘DB_DATABASE‘ ),
‘username‘ => env( ‘DB_USERNAME‘ ),
‘password‘ => env( ‘DB_PASSWORD‘ ),
‘prefix‘ => ‘‘,
‘charset‘ => ‘UTF-8‘,
‘pooling‘ => false,
],
],
以上是关于laravel连sql server报invalid handle returned问题解决方案的主要内容,如果未能解决你的问题,请参考以下文章
连接到sqlserver 2008时 出现 “服务器请求失败,请重新登录”是怎么回事?
Microsoft SQL Server,错误: 18456
PHP PDO连接SQLSERVER报错:SQLSTATE[08001]: [Microsoft][SQL Server Native Client 10.0]TCP Provider
在sql server 2000上用sa登录sql查询分析器的时候报错:无法打开用户默认数据库
laravel-echo-server 启动报错 [ioredis] Unhandled error event: ReplyError: NOAUTH Authentication required