Tag Info

New answers tagged


It is generally a terrible idea to construct SQL queries the way you currently do, as it opens the door to all sorts of SQL injection attacks. To do this properly, you'll have to use Prepared Statements instead. This will also resolve all sorts of escaping issues that you're evidently having at the moment. String[] port = new String[] {"3306"}; ...

Top 50 recent answers are included