Figured it out.

The script was designed to access the database using
localhost.localdomain. I added a grant statement and everything is roses.

Thanks for the replies.