you can add port to the config array to set it
PHP Artisan Migrate Issue
Hello there.
I am following along with the following video and hit a roadblock around the 9:33 mark:
https://laracasts.com/series/laravel-5-from-scratch/episodes/7
I cannot get homestead to work on my machine through vagrant (that's another issue for another time), so I am SSHing directly into a cloud server on a specific port I'm using for testing/learning. I ran into this error when I attempt to run 'php artisan migrate':
[PDOException] SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas sword: NO)
I googled this error and found many topics on it, tried running php artisan config:cache and cache:clear, no luck. I've been trying to edit the .env file like suggested, but still no luck. Restarting apache2 doesn't help either.
I figured out that my setup is a little unique because I'm running a specific port, so I tried putting that port on the end of DB_HOST in the .env file, but when I run the migrate command, the terminal process just hangs and I have to ctrl+C out.
As far as I know, I've followed the instructions up to that point in the video (including previous videos) perfectly and successfully. If anyone has any ideas why I can't migrate please let me know. Keep in mind I'm using sqlite like the video.
Thanks in advance.
You should be able to specify it on the sqlite array: 'port' => 1234 in your database.php file.
Please or to participate in this conversation.