CodeIgniter Forums
error when using mysql driver - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: error when using mysql driver (/showthread.php?tid=75537)



error when using mysql driver - ByteHive - 02-18-2020

i tried using the mysql driver instead of the mysqli i get the following error please help 
CRITICAL - 2020-02-18 16:59:27 --> Class '\CodeIgniter\Database\MySQL\Connection' not found
#0 C:\Users\jonas\OneDrive\Documents\ByteHiveStudio\project-root\vendor\codeigniter4\framework\system\Database\Config.php(115): CodeIgniter\Database\Database->load()
#1 C:\Users\jonas\OneDrive\Documents\ByteHiveStudio\project-root\vendor\codeigniter4\framework\system\Common.php(138): CodeIgniter\Database\Config::connect()
#2 C:\Users\jonas\OneDrive\Documents\ByteHiveStudio\project-root\app\Controllers\Auth.php(50): db_connect()
#3 C:\Users\jonas\OneDrive\Documents\ByteHiveStudio\project-root\vendor\codeigniter4\framework\system\CodeIgniter.php(847): App\Controllers\Auth->register()
#4 C:\Users\jonas\OneDrive\Documents\ByteHiveStudio\project-root\vendor\codeigniter4\framework\system\CodeIgniter.php(338): CodeIgniter\CodeIgniter->runController()
#5 C:\Users\jonas\OneDrive\Documents\ByteHiveStudio\project-root\vendor\codeigniter4\framework\system\CodeIgniter.php(246): CodeIgniter\CodeIgniter->handleRequest()
#6 C:\Users\jonas\OneDrive\Documents\ByteHiveStudio\project-root\public\index.php(45): CodeIgniter\CodeIgniter->run()
#7 C:\Users\jonas\OneDrive\Documents\ByteHiveStudio\project-root\vendor\codeigniter4\framework\system\Commands\Server\rewrite.php(34): require_once('C:\\Users\\jonas\\...')
#8 {main}



RE: error when using mysql driver - sv3tli0 - 02-19-2020

mysql is removed from PHP 7 ... you can't use it

CodeIgniter 4 requires at least PHP 7.2 to run ..