See this thread for some info.
MySql is only supported for onpremise apps. Do you meet that requirement?
Also see this thread and this Mendix doc.
what is premise applications? I want to connect mysql from my localhost