Database configuration using CodeIgniter under the Sina SAE cloud Platform

Source: Internet
Author: User
Tags pconnect codeigniter

Database configuration using CodeIgniter under the Sina SAE cloud Platform Submission: shichen2014 font: [Increase decrease] Type: Reproduced this article mainly introduces the Sina SAE cloud platform using CodeIgniter database configuration, mainly involved in the database.php configuration, the need for friends can refer to the next

Because of the limitation of the file permission of Sina SAE, the cache directory cannot modify the permission, so the original CodeIgniter cannot be used directly. You can try CodeIgniter 2.10 for sae:http://code.google.com/p/ci-sae/.

the configuration in database.php is as follows :

Copy CodeThe code is 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 the $db[' default ' [' Dbdriver '] and $db[' default ' [' Pconnect '] entries , otherwise 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


Source: >  

From for notes (Wiz)

Database configuration using CodeIgniter under the Sina SAE cloud Platform

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.