codeigniter4 / CodeIgniter4

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
5.4k stars 1.9k forks source link

Pdo driver not found #3922

Closed Guilherme-fagundes closed 4 years ago

Guilherme-fagundes commented 4 years ago

How to connect to the bank with pdo? When informing the data in the documentation, the message that the driver was not found is displayed. Help me!!!

qury commented 4 years ago

What kind of database would you like to use?

Guilherme-fagundes commented 4 years ago

I usually use MYSQL. use the PDO because it is safer because of the prepare statement

lonnieezell commented 4 years ago

We don't currently have a PDO driver. The Query Builder does a very similar thing for security as a prepared statement, but our MySQL and Postgres drivers do support true prepared statements when you need them.

luckdragon commented 2 years ago

it's been almost 2 years since this was commented on, is there still not a pdo driver for mysql in CI4?

kenjis commented 2 years ago

No. See https://github.com/codeigniter4/CodeIgniter4/tree/develop/system/Database

CodeIgniter is a community driven project and accepts contributions of code and documentation from the community. These contributions are made in the form of Issues or Pull Requests on the CodeIgniter4 repository on GitHub. See https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/README.md

ampmonteiro commented 1 year ago

This information / detail should be in the Docs.

kenjis commented 1 year ago

It is documented: https://codeigniter4.github.io/CodeIgniter4/intro/requirements.html