开发者社区> 问答> 正文

ci框架连接数据库问题

ci教程里读取新闻的代码运行不了显示错误(database.php已经配置好了)
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:PHPvc14Apache24htdocsciapplicationmodelsNews_model.php
Line: 5
Function: database
File: D:PHPvc14Apache24htdocsciapplicationcontrollersNews.php
Line: 5
Function: model
File: D:PHPvc14Apache24htdocsciindex.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

展开
收起
蛮大人123 2016-02-12 17:17:36 3919 0
1 条回答
写回答
取消 提交回答
  • 我说我不帅他们就打我,还说我虚伪

    密码或者账号错误

    2019-07-17 18:41:34
    赞同 展开评论 打赏
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
2022 DTCC-阿里云一站式数据库上云最佳实践 立即下载
云时代的数据库技术趋势 立即下载
超大型金融机构国产数据库全面迁移成功实践 立即下载