The last part of the error message
"Access denied for user 'product'@'%' to database 'product'"
can mean virtually anything in regards to access restrictions. There is no specific message on WHY you are not allowed. Therefore, you have to check any of those possibilities:
- Is your username correct?
- Is your password correct?
- Do you use new-style passwords?
- Is the host you are connecting from allowed to connect to the server?
- Do you have access to the specified database?
- Do you have ANY typos in the connection string, or the database access rights?
I hope this list is extensive and helpful - if not, please edit or comment.