Support the ongoing development of Laravel.io →
Installation Configuration Testing
Last updated 2 years ago.
0
  1. install laravel
  2. composer update
  3. php artisan migrate

What is your error?

0

This is the error message when I type "php artisan migrate"

exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No connection could be made because the target machine ac
tively refused it.
' in C:\xampp\htdocs\laravel\demo-l5\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:47
Stack trace:
0

Hi

Looks like it is looking for a database.

You can set it up by entering your database details in the .env file in the root and choose your type of database in the default section in database.php file in the config folder.

Make sure the user and pass for the db has permission to access the db you are trying to use.

I am using Laragon to run laravel in windows 8, it is quick and easy.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

hayahay hayahay Joined 3 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.