response
The hosting provider is startlogic. I set the database connection as <webaddress>.startlogicmysql.com.
The published site and the mysql database are both on startlogic. I thought maybe this error had to do with the webpage being under https or not. In addition, I assumed localhost was only for connection to a database if I were running a testing server on my own computer.
what should I try next?
Joseph