Hi Darshan,
You cannot connect to your local instance of MYSQL unless that is having public IP or domain.
Below is the video link for connecting outsystems with external mysql database
https://www.outsystems.com/forums/discussion/46192/video-how-to-work-with-an-external-mysql-database/
Best Regards
Devendra