Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Class '\CodeIgniter\Database\pdo\Connection' not found #3785

Closed
Guilherme-fagundes opened this issue Oct 18, 2020 · 2 comments
Closed
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@Guilherme-fagundes
Copy link

The framework does not connect with the Driver PDO
public $default = [ 'DSN' => 'mysql:host=localhost;dbname=sistemalogin', 'hostname' => '', 'username' => 'root', 'password' => '', 'database' => 'sistemalogin', 'DBDriver' => 'pdo', 'DBPrefix' => '', 'pConnect' => false, 'DBDebug' => (ENVIRONMENT !== 'development'), 'cacheOn' => false, 'cacheDir' => '', 'charset' => 'utf8', 'DBCollat' => 'utf8_general_ci', 'swapPre' => '', 'encrypt' => false, 'compress' => false, 'strictOn' => false, 'failover' => [], 'port' => 3306, ];

@Guilherme-fagundes Guilherme-fagundes added the bug Verified issues on the current code behavior or pull requests that will fix them label Oct 18, 2020
@samsonasik
Copy link
Member

Please read user guide for PDO configuration https://codeigniter.com/user_guide/database/configuration.html?highlight=pdo

@michalsn
Copy link
Member

@Guilherme-fagundes There is no PDO support yet. You have to use a native driver: MySQLi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

3 participants