Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (61)
- /Applications/MAMP/htdocs/crowdsets/laravel-master/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
- public function createConnection($dsn, array $config, array $options)
- {
- $username = array_get($config, 'username');
- $password = array_get($config, 'password');
- return new PDO($dsn, $username, $password, $options);
- }
- 'mysql' => array(
- 'driver' => 'mysql',
- 'host' => '127.0.0.1',
- 'database' => 'database',
- 'username' => 'root',
- 'password' => 'root',
- 'charset' => 'utf8',
- 'collation' => 'utf8_unicode_ci',
- 'prefix' => '',
- ),
- 'mysql' => array(
- 'driver' => 'mysql',
- 'host' => '127.0.0.1',
- 'port' => '8889',
- 'database' => 'database',
- 'username' => 'root',
- 'password' => 'root',
- 'charset' => 'utf8',
- 'collation' => 'utf8_unicode_ci',
- 'prefix' => '',
- ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement