Blogger Information
Blog 3
fans 0
comment 2
visits 2302
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
CI框架导入问题
开发者战队
Original
861 people have browsed it
之前运行了一个项目,而行能正常操作,但是把项目复制到另一台电脑上就出现了问题:A Database Error Occurred

occurretedException_1.png

凡事网上的方法找了好些,但是都不起作用,比如在index.php中修改内容如下 

if (defined('ENVIRONMENT'))  

{  

    switch (ENVIRONMENT)  

    {  

        case 'development':  

            error_reporting(E_ALL);  

        break;  


        case 'testing':  

        case 'production':  

            error_reporting(0);  

        break;  


        default:  

            exit('The application environment is not set correctly.');  

    }  

001.png

在config文件夹下的database.php修改如下:

$db['default']['db_debug'] = FALSE; 

002.png

但是这样的方法还不起作用,这是什么原因呢?求大神点拨……


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post