发生数据库错误!固定由db_debug设置为false? [英] A Database Error Occurred! fixed by db_debug set to false?

查看:703
本文介绍了发生数据库错误!固定由db_debug设置为false?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我只想清除我心中的问题。我收到错误

 无法使用提供的设置连接到数据库服务器。 
文件名:core / Loader.php
行号:346



关于该错误的一些问题我尝试设置 $ db ['default'] ['db_debug'] = TRUE; $ db ['default '] ['db_debug'] = FALSE; 和它工作!



db_debug - TRUE / FALSE(boolean) - 是否应显示数据库错误。



我想知道,真的解决问题或隐藏不是错误,但如果它只是隐藏它如何来它的工作原理?我担心它可能会导致以后出现问题。



存在相同的问题此处



信息和想法是很大的帮助和赞赏。很多谢谢!


code>设置为false,而不是 $ db ['default'] ['db_debug'] = TRUE;


Hi I just want to clear the question in my mind. I got an error

   Unable to connect to your database server using the provided settings.
   Filename: core/Loader.php
   Line Number: 346

after reading some of issue about that error I try to set $db['default']['db_debug'] = TRUE; to $db['default']['db_debug'] = FALSE; and it works!

as I read this in manual of CI Database Configuration

db_debug - TRUE/FALSE (boolean) - Whether database errors should be displayed.

I want to know that does really fix the problem or hiding not the error, but if it only hiding it how come it works? I am worried that it may cause future problem.

same question exist here.

any information and ideas is big help and well appreciated.Many Thanks!

解决方案

Try to $db['default']['pconnect'] = TRUE; set to false rather than $db['default']['db_debug'] = TRUE;

这篇关于发生数据库错误!固定由db_debug设置为false?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆