'SQLSTATE[HY001] Unable to allocate sufficient memory
I got some troubles upgrading my Laravel versions on a project. My server is running php7.4 and I can't get trough an error.
The errors :


From the trace it seems to appear here:
/**
* Create a new PDO connection instance.
*
* @param string $dsn
* @param string $username
* @param string $password
* @param array $options
* @return \PDO
*/
protected function createPdoConnection($dsn, $username, $password, $options)
{
if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
return new PDOConnection($dsn, $username, $password, $options);
}
return new PDO($dsn, $username, $password, $options);
}
/**
* Determine if the connection is persistent.
*
* @param array $options
* @return bool
*/
protected function isPersistentConnection($options)
{
return isset($options[PDO::ATTR_PERSISTENT]) &&
$options[PDO::ATTR_PERSISTENT];
}
/**
I'm using the driver sqlsrv in my database.php file under config folder.
My Laravel version is 7.30.6.
I previously installed sqlsrv driver from Microsoft docs on Ubuntu 20.04 but somehow Laravel couldn't find the driver so I've installed the package php7.4-sybase and then I've come to the above error.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
