Skip to content

Instantly share code, notes, and snippets.

@h2ospace
Created October 15, 2012 20:22
Show Gist options
  • Save h2ospace/3895151 to your computer and use it in GitHub Desktop.
Save h2ospace/3895151 to your computer and use it in GitHub Desktop.
FuelPHP config/db.php on MAMP
<?php
/**
* The development database settings.
*/
return array(
'default' => array(
'type' => 'mysql',
'connection' => array(
'hostname' => ':/Applications/MAMP/tmp/mysql/mysql.sock',
'database' => 'bookmark',
'username' => 'root',
'password' => 'root',
),
),
);
@hoangsvit
Copy link

<?php

/**
 * The development database settings. These get merged with the global settings.
 */


// Local
return array(
    'default' => array(
        'connection'  => array(
            'dsn'        => 'mysql:host=localhost;dbname=e-connection',
			'username'   => 'root',
			'password'   => 'root',
        ),
    ),
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment