Codeigniter 2


i have been using xampp as localserver . When i try khổng lồ run my code that time it will give a error -> " Unable to connect khổng lồ your database hệ thống 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


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 lớn "root" or what ever you configured và run the code.

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

Step #3. If you are still facing the issue double kiểm tra the database username and run the code.

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

Xem thêm: Hướng Dẫn Phân Vùng Thẻ Nhớ Trên Điện Thoại Android Lên Thẻ Sd

Didn"t find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question và get a quick answer for free.

Write quick answer

Do you know the answer khổng lồ this question? Write a quick response to lớn it. With your help, we will make our community stronger.

About the technologies asked in this question


PHP (from the English Hypertext Preprocessor - hypertext preprocessor) is a scripting programming language for developing web applications. Supported by most hosting providers, it is one of the most popular tools for creating dynamic websites.The PHP scripting language has gained wide popularity due khổng lồ its processing speed, simplicity, cross-platform, functionality và distribution of source codes under its own license.


CodeIgniter is a framework that is known for requiring a minimum amount of customization to get it up and running. This allows those who choose it khổng lồ work at a good pace. It has been updated many times since its inception in 2006. Now the most recent version is 4.0.3.


DBMS is a database management system. It is designed to lớn change, search, add and delete information in the database. There are many DBMSs designed for similar purposes with different features. One of the most popular is MySQL.It is a software tool designed khổng lồ work with relational SQL databases. It is easy to lớn learn even for site owners who are not professional programmers or administrators. MySQL DBMS also allows you lớn export & import data, which is convenient when moving large amounts of information.

Welcome khổng lồ

* is a question and answer site for professional website developers, programming enthusiasts & website builders. Site created và operated by the community. Together with you, we create a free library of detailed answers to lớn any question on programming, web development, trang web creation and website administration.

Get answers lớn specific questions

Ask about the real problem you are facing. Describe in detail what you are doing và what you want lớn achieve.

Xem thêm: Điện Thoại Android Không Vào Được Facebook

Help Others Solve Their Issues

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

Latest questions:

216 php - How khổng lồ sort arrays like given below? 860 php - Strange new line in my string, how can I remove it? 573 php - Illegal string offset - Small issue 958 php - I want khổng lồ select record between two dates 543 php - I want to search picture from mysql 178 Why PHP cURL is not setting the cookie? 271 php - Supplied argument is not a valid MySQL 473 php - pagination in search results 62 PHP search Form using mysql database 414 php and javascript tương tác form is not getting execute PHP x 207435Laravel x 24768Yii x 1636CodeIgniter x 4666Symfony x 4080CakePHP x 1214Zend Framework x 390Phalcon x 137FuelPHP x 19Slim x 313JavaScript x 19718React x 431Angular x 494Vue.js x 130JQuery x 4811Backbone.js x 5Node.js x 263Meteor x 2Polymer x 5MySQL x 17382CSS x 1329Bootstrap x 902Foundation x 51UIkit x 1Semantic UI x 1Bulma x 2Animate.css x 1HTML x 10810Join us in Facebook
© 2021-2022Preguntas y respuestas sobre programación website en español.E-mail:

This site uses cookies. We use them to improve the performance of our website and your interaction with it. Confirm your consent by clicking OK