_php instance of using CodeIgniter database configuration under the Sina SAE cloud Platform

Source: Internet
Author: User
Tags pconnect codeigniter file permissions

As a result of the Sina SAE restrictions on file permissions, cache directory can not modify permissions, so the original CodeIgniter can not be used directly. You can try CodeIgniter 2.10 for sae:http://code.google.com/p/ci-sae/.

The following are configured in database.php :

Copy Code code as follows:
$db [' Default '] [' hostname '] = sae_mysql_host_m;
$db [' Default '] [' username '] = sae_mysql_user;
$db [' Default '] [' password '] = Sae_mysql_pass;
$db [' Default '] [' database '] = sae_mysql_db;
$db [' Default '] [' dbdriver '] = ' mysqli ';
$db [' Default '] [' dbprefix '] = ';
$db [' Default '] [' pconnect '] = FALSE;
$db [' Default '] [' db_debug '] = TRUE;
$db [' Default '] [' cache_on '] = FALSE;
$db [' Default '] [' cachedir '] = ';
$db [' Default '] [' char_set '] = ' UTF8 ';
$db [' Default '] [' dbcollat '] = ' utf8_general_ci ';
$db [' Default '] [' swap_pre '] = ';
$db [' Default '] [' autoinit '] = TRUE;
$db [' Default '] [' stricton '] = FALSE;
$db [' Default '] [' port '] = Sae_mysql_port;

Note that $db[' default '] [' dbdriver '] and $db[' default ' [' Pconnect '] entries , or else the following error message appears:

A Database Error occurred
Unable to connect to your Database server using the provided settings.
filename:core/loader.php
Line number:346

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.