SQLSRV : Login timeout expired #47640
Unanswered
mbaur-nexton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version
10.9.0
PHP Version
8.2
Database Driver & Version
sqlsrv
Description
I'm trying to connect to a sql server database from Laravel 10 deployed on ubuntu 22.04. but I keep getting the following error: SQLSTATE[HYT00]: [Microsoft][ODBC Driver 18 for SQL Server]Login timeout expired
I installed the drivers to establish a connection to an sql server, following the Microsoft documentation. I also activated the php extensions sqlsrv and pdo_sqlsrv. I set the login timeout to 5 minutes. Despite all this, I still get the error.
However, I manage to connect to the database from the command line with sqlcmd and with a php file where I use pdo for the connection.
Steps To Reproduce
php artisan db:show
Beta Was this translation helpful? Give feedback.
All reactions