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