@Benjamin Stevens Welcome to the Microsoft Q&A forum, Thanks for posting your question.
You can use TcpClient in .NET to connect to port 3306 and check if it is open or not. This method is often referred to as "tcpping" and is very similar to the original Ping.
Regards
Geetha