Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- php artisan migrate:install
- {"error":{"type":"ErrorException","message":"PDO::__construct(): [2002] Connection refused (trying to connect via tcp://127.0.0.1:3306)","file":"/Applications/MAMP/htdocs/DRCSports/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php","line":47}}
- 'mysql' => array(
- 'driver' => 'mysql',
- 'host' => '127.0.0.1',
- 'database' => 'Laravel_DRCSports',
- 'username' => 'root',
- 'password' => 'root',
- 'charset' => 'utf8',
- 'collation' => 'utf8_unicode_ci',
- 'prefix' => '',
- ),
- 'mysql' => array(
- 'driver' => 'mysql',
- 'host' => 'localhost:8889',
- 'database' => 'pic',
- 'username' => 'root',
- 'password' => 'root',
- 'charset' => 'utf8',
- 'collation' => 'utf8_unicode_ci',
- 'prefix' => '',
- ),
- 'cluster' => false,
- 'default' => array(
- 'host' => '127.0.0.1',
- 'port' => 8888,
- 'database' => 0,
- ),
- ),
- 'mysql' => array(
- ...
- 'host' => 'localhost',
- 'port' => '8889',
- ...
- )
- 'mysql' => array(
- ...
- 'host' => 'localhost:8889',
- ...
- )
- $my_hostname = 'localhost';
- $my_port = '8889';
- $my_database = 'database';
- $my_username = 'username';
- $my_password = 'password';
- if (App::runningInConsole()) { // artisan runs from the command line
- // change 'localhost' to 'localhost:8889'
- $my_hostname = $my_hostname.':'.$my_port;
- }
- 'mysql' => array(
- 'driver' => 'mysql',
- 'host' => $my_hostname,
- 'port' => $my_port,
- 'database' => $my_database,
- 'username' => $my_username,
- 'password' => $my_password,
- 'charset' => 'utf8',
- 'collation' => 'utf8_unicode_ci',
- 'prefix' => '',
- ),
- 'mysql' => array(
- ...
- 'pconnect' => 'TRUE',
- ...
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement