As I was following this tutorial,
Everything is perfectly done except the database connection. During deploy, at migrate stage, it seems the env credentials provided is not able to establish a connection with the server itself.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @risingsoul1991,
Can you try using the following command to see if you would be able to connect to the database :
mysql -u laravel_db_user -p laravel_db -h localhost
You’ll need to change laravel_db_user and laravel_db with the actual information of course.
If it doesn’t work, most probably your password is not correct. To change it, you can use the following
mysql
ALTER USER 'laravel_db_user '@'localhost' IDENTIFIED BY 'New-Password-Here';
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.