The code for reading news in the ci tutorial cannot run, and an error is displayed (database. php has been configured) APHPErrorwasencounteredSeverity: WarningMessage: mysqli: real_connect () :( HY0001045): Accessdeniedforuser & #039; root & #039; @ & #039; localho... the code for reading news in the ci tutorial cannot run, and an error is displayed (database. php has been configured)
A php Error was encountered
Severity: Warning
Message: mysqli: real_connect (): (HY000/1045): Access denied for user 'root' @ 'localhost' (using password: YES)
Filename: mysqli/mysqli_driver.php
Line Number: 202
Backtrace:
File: D: \ PHP \ vc14 \ Apache24 \ htdocs \ ci \ application \ models \ News_model.php
Line: 5
Function: database
File: D: \ PHP \ vc14 \ Apache24 \ htdocs \ ci \ application \ controllers \ News. php
Line: 5
Function: model
File: D: \ PHP \ vc14 \ Apache24 \ htdocs \ ci \ index. php
Line: 292
Function: require_once
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: core/Loader. php
Line Number: 353
Reply content:
The code for reading news in the ci tutorial cannot run. An error is displayed (database. php has been configured)
A php Error was encountered
Severity: Warning
Message: mysqli: real_connect (): (HY000/1045): Access denied for user 'root' @ 'localhost' (using password: YES)
Filename: mysqli/mysqli_driver.php
Line Number: 202
Backtrace:
File: D: \ PHP \ vc14 \ Apache24 \ htdocs \ ci \ application \ models \ News_model.php
Line: 5
Function: database
File: D: \ PHP \ vc14 \ Apache24 \ htdocs \ ci \ application \ controllers \ News. php
Line: 5
Function: model
File: D: \ PHP \ vc14 \ Apache24 \ htdocs \ ci \ index. php
Line: 292
Function: require_once
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: core/Loader. php
Line Number: 353
Wrong Password or account
In the database. php configuration, replace localhost with 127.0.0.1.