![]() |
Error Problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Error Problem (/showthread.php?tid=79336) |
Error Problem - Mingyinleong - 05-29-2021 Hi, I am new anyone knows how to fix this error? A PHP Error was encountered Severity: Warning Message: mysqli::real_connect(): (HY000/1045): Access denied for user 'bi19110176'@localhost (using password: YES) Filename: mysqli/mysqli_driver.php Line Number: 201 Backtrace: File: C:\xampp\xampp\htdocs\webtech2021_BI19110176\application\controllers\Welcome.php Line: 25 Function: model File: C:\xampp\xampp\htdocs\webtech2021_BI19110176\index.php Line: 315 Function: require_once A Database Error Occurred Unable to connect to your database server using the provided settings. Filename: C:/xampp/xampp/htdocs/webtech2021_BI19110176/system/database/DB_driver.php Line Number: 436 My code: public function index() { //$this->load->database(); //$this->load->view('welcome_message'); $this -> load -> model('Customer','',TRUE); $this -> Customer -> getCustomers(); } RE: Error Problem - includebeer - 05-31-2021 The reason is in the first line: Access denied for user 'bi19110176'@localhost Enter the right password for that user and it will connect. RE: Error Problem - InsiteFX - 05-31-2021 If not running XAMPP then use cmd or terminal. Code: // XAMPP - Shell from Control Panel - change root to your user name and password to yours. |