w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
GlassFish can't connect to mysql (XAMPP)

One possibility is that mysql server & glassfish server are installed on the same host. So, you should go to etc/mysql/my.cnf if there is a public ip address bind you should remove it and put only bind-address =

Another case is that in stead of URL: jdbc:mysql://localhost:3306/SIRS you should put URL: jdbc:mysql:// This worked for me.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.