Last active
June 23, 2016 07:33
-
-
Save avinashseth/9cdf5b85199895cbfcd91283c27ec2f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require 'vendor/autoload.php'; | |
| $database = new medoo([ | |
| // required | |
| 'database_type' => 'mysql', | |
| 'database_name' => 'name', | |
| 'server' => 'localhost', | |
| 'username' => 'your_username', | |
| 'password' => 'your_password', | |
| 'charset' => 'utf8', | |
| // [optional] | |
| 'port' => 3306, | |
| // [optional] Table prefix | |
| 'prefix' => 'PREFIX_', | |
| // driver_option for connection, read more from http://www.php.net/manual/en/pdo.setattribute.php | |
| 'option' => [ | |
| PDO::ATTR_CASE => PDO::CASE_NATURAL | |
| ] | |
| ]); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment