我使用Laravel 5时遇到问题.当我运行"php aritsan migrate"时,我收到了这个错误
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? [y/N] y
[PDOException]
could not find driver
Run Code Online (Sandbox Code Playgroud)
我可以运行应用程序,但是当需要数据库连接时,我收到了这个错误
PDOException in Connector.php line 55:
could not find driver
in Connector.php line 55
at PDO->__construct('mysql:host=localhost;dbname=mydb', 'root', '', array('0', '2', '0', false, false)) in Connector.php line 55
at Connector->createConnection('mysql:host=localhost;dbname=mydb', array('driver' => 'mysql', 'host' => 'localhost', 'database' => 'mydb', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' …Run Code Online (Sandbox Code Playgroud) 这是完整的错误消息:
SQLSTATE[08001]:[Microsoft][SQL Server 的 ODBC 驱动程序 18]SSL 提供程序:证书链由不受信任的机构颁发。
我有一个私人公司项目,目前该项目是使用CodeIgniter3开发的,数据库使用Microsoft SQL Server。我需要将项目变成 Laravel9。因此,我遵循一些指示,直到在这里遇到一些教程:
安装没有遇到太大问题。我使用合适的驱动程序按照第一个列表中的过程进行操作。但随后面临上述错误。