Replies: 7 comments 2 replies
-
|
Try |
Beta Was this translation helpful? Give feedback.
-
|
You should not |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Check the following steps: Verify DB_CONNECTION=mysql
DB_HOST=127.0.0.1 # Try replacing localhost with 127.0.0.1
DB_PORT=3306
DB_DATABASE=your_db_name
DB_USERNAME=mercator_user
DB_PASSWORD="your_password"If the password has special characters, enclose it in quotes. Clear config cache php artisan config:clear
php artisan cache:clearCheck MySQL connection via Laravel php artisan tinker
DB::connection()->getPdo();Check MySQL user host SELECT host FROM mysql.user WHERE user = 'mercator_user';Ensure it includes Let me know if the issue persists. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks again for your help! I managed to fix the database connection issue by adding quotes around the password in the .env file due to special characters, like you said. However, now I'm facing another issue. When I try to access the web interface at http://IP:8000/login, the page keeps loading indefinitely, as shown in the attached screenshot. The network tab shows that the necessary CSS and images are loading, but the interface itself does not display anything. |
Beta Was this translation helpful? Give feedback.
-
|
Is there and error in the logs : /var/www/mercator/storage/logs/laravel.log ? |
Beta Was this translation helpful? Give feedback.
-
|
It might be a write access issue. Try : |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
Hello dbarzin,
I am following your documentation to set up the project. Everything went well until I ran the command php artisan migrate --seed. However, I encountered the following error:
Steps I have taken to troubleshoot:
I have correctly configured the database credentials in the .env file.
The password is correct since I can manually connect to MySQL using mysql -u mercator_user -p.
I checked that the user mercator_user has the necessary privileges by running SHOW GRANTS FOR 'mercator_user'@'localhost';.
I also tried reinstalling using sudo, but the issue persists.
Do you have any idea what might be causing this issue?
Thank you in advance for your help.
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions