• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Don't use secure connection

 
Ranch Hand
Posts: 210
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a problem with my database because it tries to connect to SSL while I have not asked for a secure connection.
I do not understand for it seeks to use a secure connection in localhost, it's already complicated enough with a conventional connection.
I work with Fedora 27 workstation, Tomcat 9.0.2 and Mysql 5.7 ...
There may be an option to uncheck?

 
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That warning tells you what settings are needed to not use SSL.

"
You need either to explicitly disable SSL by setting useSSL=false...
"

That useSSL is part of the connection string.
 
Philippe Ponceblanc
Ranch Hand
Posts: 210
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dave Tolls wrote:That warning tells you what settings are needed to not use SSL.

"
You need either to explicitly disable SSL by setting useSSL=false...
"

That useSSL is part of the connection string.




where can I put the useSSL = false in my code?

 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Probably by using the following URL:


OK, I googled it and DEFINITELY that's how to do it. It's the common way to add parameters to JDBC connections, so no big surprise.

Although using the DriverManager to get database connections is NOT recommended in web applications. It's better to set up a Tomcat connection pool and use that, instead. The URL is the same in either case.
 
Philippe Ponceblanc
Ranch Hand
Posts: 210
1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:Probably by using the following URL:


OK, I googled it and DEFINITELY that's how to do it. It's the common way to add parameters to JDBC connections, so no big surprise.

Although using the DriverManager to get database connections is NOT recommended in web applications. It's better to set up a Tomcat connection pool and use that, instead. The URL is the same in either case.




Thank you very mutch !!

Post/thread solved
 
She still doesn't approve of my superhero lifestyle. Or this shameless plug:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic