数据库错误代码字母3.0.6



具有更新的应用程序,该应用程序以前在Code IGNITER版本3.0至3.0.6上运行。在我的本地服务器上工作正常,但是当我上传到iPage时,我会收到数据库错误。不幸的是,在堆栈溢出上浏览了手动尝试的解决方案。

链接到错误屏幕截图

DB Connection

'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');
}

}

您可以要求您的主机禁用old_passwords,但是如果它是共享数据库系统,它们很可能不愿意。

最新更新