Good day!
I am facing problems with my laravel project built with laravel 5.1.
So I developed a reservation system with laravel, it works on my local server.
Then I uploaded it to my live server and started an SSH session.
But when I ran php artisan migrate
command, this error showed up
[PDOException] SQLSTATE[HY000] [2005] Unknown MySQL server host 'sddb0040291787.cgidb' (0)
So, what I did so far is I wrote a php script to create the tables and other database related stuff and then run the php script on my server.
This works actually, my CRUD functions are working but I know this is just a temporary solution.
What I am looking for is a permanent solution. Plain PHP scripts seem to be able to connect to the database host. but when I migrate using laravel, the error always shows up. Any ideas?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire