It can't connect to the mysql port, check if mysql is running.
sudo systemctl status mysql
Share the mysql configuration for your application, what do you have defined to connect to mysql?
And what does your mysql config look like?
cat /etc/my.cnf