“Error establishing database connection” when trying to run script through crontab

“Error establishing database connection” when trying to run script through crontab