There are times when you might have a database connection error. If you are on the Ubuntu system on Amazon hosting then run this command.
sudo service mysql
or try this
sudo /etc/init.d/mysql start
Restart MySql in Ubuntu was last modified: August 10th, 2016 by
Advanced Programming Made Easy
I hope you enjoyed the article. If I was able to help you please consider buying me a drink.