Issue with Azure mysql database for flexible server connection to azure app service. driver not found in sql server

abhi 0 Reputation points
2024-05-20T18:55:03.8733333+00:00

org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [loginServlet] in context with path [/myshuttledev] threw exception [Servlet execution threw an exception] with root causejava.lang.ExceptionInInitializerError: java.sql.SQLException: No suitable driver found for vrit10pmsql.mysql.database.azure.comat com.microsoft.example.DataAccess

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
850 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,913 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Oury Ba-MSFT 19,581 Reputation points Microsoft Employee
    2024-05-23T17:49:54.6166667+00:00

    @abhi

    Thank you for getting back to me.

    Azure Database for MySQL flexible server with Public access (allowed IP addresses), make sure that the firewall is configured to allow connections from your client. Refer to Create and manage Azure Database for MySQL flexible server firewall rules using the Azure portal.

    Client firewall configuration: The firewall on your client must allow connections to your Azure Database for MySQL flexible server instance. IP addresses and ports of the server that you connect to must be allowed as well as application names such as MySQL in some firewalls.

    Please let us know the result.

    Are you connecting using managed identity.?

    Regards,

    Oury

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.