Supplement: Due to sae restrictions on file permissions, the cache directory cannot be modified, so the original codeigniter cannot be used directly. You can try http://code.google.com/p/ci-sae /.
Configure the following in database. php:
$ 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;
Pay attention to the highlighted part. Otherwise, the following error occurs:
A database error occurred
Unable to connect to your database server using the provided settings.
Filename: Core/loader. php
Line number: 346