2

I've just started with Laravel, installed on WAMP server, and when trying to migrate the first tables, I get and error saying that homeasted@localhost user has no premission, but I dont know how to change it to work on my virtual machine. What should I do?

Vvk
  • 4,031
  • 29
  • 51
Efi Minzer
  • 25
  • 7

4 Answers4

1

If you're using Homestead, you do not need WAMP server. To run migrate command, you need to run vagrant up to start the VM box and then run vagrant ssh command to run SSH. Only after that you should run php artisan migrate command.

Alexey Mezenin
  • 158,981
  • 26
  • 290
  • 279
1

Please check out Laravels Homestead – it is easy to setup and provides you with a webserver, ready to use and pre-configured for Laravel.

But if you want to use WAMP, you have to:

1) Create a database for your new Laravel installation. Go to your local phpmyadmin, which comes pre-installed with WAMP Server. Login to your database (default username should be 'root', password is blank). There you can manage your databases. Go ahead and create one for your Laravel installation. (There are many tutorials about how to create a database with phpmyadmin)

2) Go to the root directory of your Laravel installation. Open the file called .env.example and fill in your database settings. Then save it to .env. This should get your database connection up and running. Read more about .env in the laravel docs.

tillsanders
  • 1,656
  • 1
  • 17
  • 29
0

Please check here i think that can help you.

https://laracasts.com/discuss/channels/general-discussion/homestead-db-connection-problem

Gautam Patadiya
  • 1,401
  • 14
  • 19
0

well you can change the table name in .env file which is present in the root directory If it is not present in there (as it is not available in laravel 5.2) please download it. Enjoy

Ijaz Ahmed Bhatti
  • 736
  • 1
  • 7
  • 26