i have been using xampp as localhệ thống . when i try lớn run my code that time it will give a error -> " Unable to lớn connect to your database server using the provided settings.

Bạn đang xem: “codeigniter 2

Filename: core/CodeIgniter.php

Line Number: 518 "

also give one more error " A PHP Error was encounteredSeverity: Warning

Message: mysqli::real_connect(): (HY000/1044): Access denied for user ""
"localhost" khổng lồ database "stud"

Filename: mysqli/mysqli_driver.php

Line Number: 203

Backtrace:

File: /opt/lampp/htdocs/CodeIgniter/index.phpLine: 315Function: require_once "

code --> ` $db<"default"> = array( "dsn" => "", "hostname" => "localhost", "username" => "", "password" => "", "database" => "stud", "dbdriver" => "mysqli", "dbprefix" => "", "pconnect" => FALSE, "db_debug" => TRUE /*(ENVIRONMENT !== "production")*/ , "cache_on" => FALSE, "cachedir" => "", "char_set" => "utf8", "dbcollat" => "utf8_general_ci", "swap_pre" => "", "encrypt" => FALSE, "compress" => FALSE, "stricton" => FALSE, "failover" => array(), "save_queries" => TRUE); `Copy code

*

*

Solution:Step #1. Change the username to "root" or what ever you configured and run the code.

Step #2. If you are still facing the issue, changes the password from "" to lớn the one which you entered at the time of MySQL installation và run the code.

Step #3. If you are still facing the issue double check the database username và run the code.

Xem thêm: Cách Chơi Đàn Mandolin Chọn Lọc, Cách Chơi Đàn Mandolin

Step #4. If you are still facing the issue, please find the port number on which MySQL is running và configure.


Welcome to clinkerhq.com

*

clinkerhq.com is a question và answer site for professional website developers, programming enthusiasts và website builders. Site created and operated by the community. Together with you, we create a miễn phí library of detailed answers khổng lồ any question on programming, website development, website creation and trang web administration.

Get answers to lớn specific questions

Ask about the real problem you are facing. Describe in detail what you are doing & what you want khổng lồ achieve sầu.

Help Others Solve sầu Their Issues

Our goal is to create a strong community in which everyone will tư vấn each other. If you find a question and know the answer lớn it, help others with your knowledge.

Bài viết liên quan

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *