PHP Classes

File: tests/mocks/database/config/pdo/mysql.php

Recommend this page to a friend!
  Classes of Asad Ullah   PHP Google Authenticator with CodeIgniter   tests/mocks/database/config/pdo/mysql.php   Download  
File: tests/mocks/database/config/pdo/mysql.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Google Authenticator with CodeIgniter
2fa Google Authenticator implementation
Author: By
Last change:
Date: 5 years ago
Size: 807 bytes
 

Contents

Class file image Download
<?php

return array(

   
// Typical Database configuration
   
'pdo/mysql' => array(
       
'dsn' => 'mysql:host=localhost;dbname=ci_test',
       
'hostname' => 'localhost',
       
'username' => 'travis',
       
'password' => '',
       
'database' => 'ci_test',
       
'dbdriver' => 'pdo',
       
'subdriver' => 'mysql'
   
),

   
// Database configuration with failover
   
'pdo/mysql_failover' => array(
       
'dsn' => '',
       
'hostname' => 'localhost',
       
'username' => 'not_travis',
       
'password' => 'wrong password',
       
'database' => 'not_ci_test',
       
'dbdriver' => 'pdo',
       
'subdriver' => 'mysql',
       
'failover' => array(
            array(
               
'dsn' => 'mysql:host=localhost;dbname=ci_test',
               
'hostname' => 'localhost',
               
'username' => 'travis',
               
'password' => '',
               
'database' => 'ci_test',
               
'dbdriver' => 'pdo',
               
'subdriver' => 'mysql'
           
)
        )
    )
);