Unable to connect to MySQL in app from Servlet

和江 相馬 1 Reputation point
2022-07-25T02:21:16.03+00:00

I cannot connect to the DB created by MySQL in app from the Servlet.

The following is a partial excerpt of the error display in the log stream.
This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error.

The following is a partial excerpt of the error display in the MySQL process.log.
2022-07-25T00: 54: 37.811653Z 0 [ERROR] Cannot open Windows EventLog; check privileges, or start server with --log_syslog = 0

Until last year, I was able to connect without any problems, but when I ran it last week, I couldn't connect and asked a question.
By the way, when I used Tomcat and MySQL of Xampp created locally, I was able to connect.

Finally, the development environment is as follows.
After creating a resource from Web Apps, turn on MySQL in app and create a DB from MySQL.
・ Windows 10
・ Eclipse Version: 2022
* The version when you could connect last year is Version: 2020
· Azure Toolkit for Eclipse
・ Java11
* Java 8 was used last year
・ Connector / J 8.0

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
986 questions
{count} votes

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.