Bhanu Teja
unread,Oct 18, 2018, 9:08:45 AM10/18/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Cloud SQL discuss
Hi,
I am new to google cloud server.
I am getting database error in my codeigniter frame work (PHP) application.
Database: Mysqli
Application version: PHP 5.5
Error Message: Unable to connnect your database by provided settings.
My sample database config code:
$db['default'] = array(
'dsn' => "'',
'hostname' => ' cloudsql/INSTANCE_CONNECTION_NAME;dbname=DATABASE ',
'username' => 'db user',
'password' => "db Password'',
'database' => 'db name',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => TRUE,
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '{PRE}',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
Please help me on this.