Welcome Guest, Not a member yet? Register   Sign In
Main connection [MySQLi]: No such file or directory

Sometimes, in my logs file, have lines:

ERROR - 2022-07-17 05:18:20 --> Error connecting to the database: No such file or directory
CRITICAL - 2022-07-17 05:18:20 --> Unable to connect to the database.
Main connection [MySQLi]: No such file or directory
in SYSTEMPATH/Database/BaseConnection.php on line 416.
1 SYSTEMPATH/Session/Handlers/DatabaseHandler.php(91): CodeIgniter\Database\BaseConnection->initialize()
2 [internal function]: CodeIgniter\Session\Handlers\DatabaseHandler->open('ci_sessions', 'ci_session')
3 SYSTEMPATH/Session/Session.php(896): session_start()
4 SYSTEMPATH/Session/Session.php(240): CodeIgniter\Session\Session->startSession()
5 SYSTEMPATH/Config/Services.php(613): CodeIgniter\Session\Session->start()
6 SYSTEMPATH/Config/BaseService.php(192): CodeIgniter\Config\Services:Confusedession(Object(Config\App), false)
7 SYSTEMPATH/Config/Services.php(585): CodeIgniter\Config\BaseService::getSharedInstance('session', null)
8 SYSTEMPATH/Common.php(932): CodeIgniter\Config\Services:Confusedession()
9 APPPATH/Libraries/Auth.php(162): session()
10 APPPATH/Filters/StartApp.php(15): App\Libraries\Auth->validRoute()
11 SYSTEMPATH/Filters/Filters.php(173): App\Filters\StartApp->before(Object(CodeIgniter\HTTP\IncomingRequest), null)
12 SYSTEMPATH/CodeIgniter.php(440): CodeIgniter\Filters\Filters->run('soi-cau/xsdna/25', 'before')
13 SYSTEMPATH/CodeIgniter.php(349): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
14 FCPATH/index.php(56): CodeIgniter\CodeIgniter->run()

Thanks for more info

Learning CI4 from my works, from errors and how to fix bugs in the community

Love CI & Thanks CI Teams


What version of CodeIgniter are you running ?
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB