Error Problem |
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(); }
The reason is in the first line: Access denied for user 'bi19110176'@localhost
Enter the right password for that user and it will connect.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
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. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |