mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-03 18:53:43 +01:00 
			
		
		
		
	Merge pull request #1583 from manuelgu/patch-3
Added useSSL=false to JDBC connection URL
This commit is contained in:
		@@ -45,7 +45,7 @@ public class MySQL extends Database {
 | 
			
		||||
    public Connection forceConnection() throws SQLException, ClassNotFoundException {
 | 
			
		||||
        Class.forName("com.mysql.jdbc.Driver");
 | 
			
		||||
        this.connection =
 | 
			
		||||
                DriverManager.getConnection("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database, this.user, this.password);
 | 
			
		||||
                DriverManager.getConnection("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database + "?useSSL=false", this.user, this.password);
 | 
			
		||||
        return this.connection;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -55,9 +55,9 @@ public class MySQL extends Database {
 | 
			
		||||
            return this.connection;
 | 
			
		||||
        }
 | 
			
		||||
        Class.forName("com.mysql.jdbc.Driver");
 | 
			
		||||
        PS.debug("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database);
 | 
			
		||||
        PS.debug("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database + "?useSSL=false");
 | 
			
		||||
        this.connection =
 | 
			
		||||
                DriverManager.getConnection("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database, this.user, this.password);
 | 
			
		||||
                DriverManager.getConnection("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database + "?useSSL=false", this.user, this.password);
 | 
			
		||||
        return this.connection;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user