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?
4 Answers
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.

- 158,981
- 26
- 290
- 279
-
Thank you! that helped a lot! – Efi Minzer Feb 24 '16 at 12:19
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.

- 1,656
- 1
- 17
- 29
Please check here i think that can help you.
https://laracasts.com/discuss/channels/general-discussion/homestead-db-connection-problem

- 1,401
- 14
- 19
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

- 736
- 1
- 7
- 26