How to fix PHP database connection? |
Hello everyone, I'm new here. Does anyone have any knowledge on how to resolve this error?
Error Message: A PHP Warning 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 Additionally, a Database Error has occurred. Unable to establish a connection with the database server using the provided settings. Filename: C:/xampp/xampp/htdocs/webtech2021_BI19110176/system/database/DB_driver.php Line Number: 436 Here's my code: public function index() { //$this->load->database(); //$this->load->view('welcome_message'); $this->load->model('Customer', '', TRUE); kotlin $this->Customer->getCustomers(); } Code: // Shell from Control Panel or CMD - change your_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 |