简体   繁体   中英

Laravel 4 with vagrant database migration “using password NO” reset

I am currently getting an error when I do my database migration with artisan with the command

 sudo php artisan migration

I then get the following error:

 SQLSTATE[28000][1045] Access denied for user 'root'@'localhost' (using password: NO). 

I don't know where I would be able to reset the password or how and I have been looking for quite some time now. Any advice would be great. I am running this in a vagrant box. Thank you.

编辑您的app/config/database.php文件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM