On this link you will find all details about setup mysql for Confluence. Actually, it works to Linux and Microsoft as well.
However, if you are facing any error message, could you share it with us?
In addition, on CentOS you only need to make sure you don't have any firewall blocking the MySQL or Confluence ports. Also, check if SeLinux is enable.
Hope it helps.
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG