mirror of
https://github.com/opelly27/Sokobot.git
synced 2026-05-20 07:37:34 +00:00
fixed typo (thanks to @alsoGAMER)
This commit is contained in:
@@ -35,7 +35,7 @@ public class Database {
|
|||||||
con = DriverManager.getConnection(
|
con = DriverManager.getConnection(
|
||||||
"jdbc:mysql://" + mysql_hostname + ":" + mysql_port + "/" + mysql_database
|
"jdbc:mysql://" + mysql_hostname + ":" + mysql_port + "/" + mysql_database
|
||||||
+ "?autoReconnect=true", mysql_username, mysql_password);
|
+ "?autoReconnect=true", mysql_username, mysql_password);
|
||||||
System.out.println("[INFO] Successfully initialized databse connection.");
|
System.out.println("[INFO] Successfully initialized database connection.");
|
||||||
} else if (dbType == DBType.SQLite) {
|
} else if (dbType == DBType.SQLite) {
|
||||||
File sqliteFile = new File(filePath);
|
File sqliteFile = new File(filePath);
|
||||||
if (!sqliteFile.exists()) {
|
if (!sqliteFile.exists()) {
|
||||||
@@ -44,7 +44,7 @@ public class Database {
|
|||||||
if (!create) System.out.println("[ERROR] Could not create SQLite file at " + filePath);
|
if (!create) System.out.println("[ERROR] Could not create SQLite file at " + filePath);
|
||||||
}
|
}
|
||||||
con = DriverManager.getConnection("jdbc:sqlite:" + filePath);
|
con = DriverManager.getConnection("jdbc:sqlite:" + filePath);
|
||||||
System.out.println("[INFO] Successfully initialized databse connection.");
|
System.out.println("[INFO] Successfully initialized database connection.");
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
System.out.println("[ERROR] Error at creating database connection: " + ex.getMessage());
|
System.out.println("[ERROR] Error at creating database connection: " + ex.getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user