0
我试着与我的laravel应用程序外部数据库连接,并得到了以下错误消息:Laravel连接外部数据库?
[Illuminate\Database\QueryException]
could not find driver (SQL: select * from information_schema.tables where table_schema = lextern and table_name = migrations)
[PDOException]
could not find driver
连接:
DB_CONNECTION=mysql
DB_HOST=db_ip
DB_PORT=3306
DB_DATABASE=lextern
DB_USERNAME=lextern_root
DB_PASSWORD=db_pw
如果我从本地主机,然后它工作...
做我没有在服务器上安装mysql,但希望与外部数据库连接,我是否还需要在服务器上设置一些东西?
您将需要在服务器上安装mysql-client,以便使用mysql函数连接到外部mysql数据库。 – Dekel