数据库错误CodeIgniter 3.0.6

时间:2016-06-29 14:27:44

标签: database codeigniter

已更新先前在代码点火器版本3.0到3.0.6上运行的应用程序。在我的本地服务器上它工作正常,但当我上传到ipage我得到数据库错误。不幸的是,在堆栈溢出处通过手动尝试的解决方案不适用于我。

link to error screenshot

数据库连接

'dsn'   => '',
'hostname' => 'myipagehost',
'username' => 'myusername',
'password' => 'mypass',
'database' => 'mydatabase',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (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

登陆控制器

class Landing extends CI_Controller {
public function __construct()
{
    parent::__construct();
}
public function index()
{   
    // $this->load->view('template/frontheader');
    $this->load->view('landing/index');
    // $this->load->view('template/frontfooter');
}
function internships()
{
    $this->load->view('landing/internship');
}
function cities()
{
    $this->load->view('landing/cities');
}
function categories()
{
    $this->load->view('landing/categories');
}

function policy()
{
    $this->load->view('landing/policy');
}

function support()
{
    $this->load->view('template/frontheader');
    $this->load->view('landing/support');
    $this->load->view('template/frontfooter');
}
function termsandcondition()
{
    $this->load->view('landing/termaandcondition');
}
function aboutus()
{   
    $this->load->view('template/frontheader');
    $this->load->view('landing/aboutus');
    $this->load->view('template/frontfooter');
}
function partner()
{   
    $this->load->view('template/frontheader');
    $this->load->view('landing/partners');
    $this->load->view('template/frontfooter');

}
function faq()
{
    $this->load->view('landing/faq');
}

function contact()
{
    $this->load->view('landing/contactus');
}

}

1 个答案:

答案 0 :(得分:0)

您可以要求您的主机停用old_passwords,但如果它是共享数据库系统,则他们可能不愿意这样做。