2
0
Эх сурвалжийг харах

Making MariaDB the default database

Added dedicated user for database instead of root.
Zoey76 5 жил өмнө
parent
commit
ddc5df11ba

+ 10 - 10
src/main/resources/config/Server.properties

@@ -43,7 +43,7 @@ GameserverPort = 7777
 # Database Engine
 # Available: MySQL, MariaDB
 # Default: MySQL
-Database = MySQL
+Database = MariaDB
 
 # Specify the appropriate driver and url for the database you're using.
 # Examples:
@@ -51,23 +51,23 @@ Database = MySQL
 # Driver = org.hsqldb.jdbcDriver
 # Driver = com.microsoft.sqlserver.jdbc.SQLServerDriver
 # Driver = org.mariadb.jdbc.Driver
-# Default: com.mysql.cj.jdbc.Driver
-Driver = com.mysql.cj.jdbc.Driver
+# Default: org.mariadb.jdbc.Driver
+Driver = org.mariadb.jdbc.Driver
 # Database URL
 # URL = jdbc:mysql://localhost/l2jgs?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
 # URL = jdbc:hsqldb:hsql://localhost/l2jgs
 # URL = jdbc:sqlserver://localhost/database = l2jgs/user = sa/password = 
 # URL = jdbc:mariadb://localhost/l2jgs
-# Default: jdbc:mysql://localhost/l2jgs?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
-URL = jdbc:mysql://localhost/l2jgs?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
-# Database user info (default is "root" but it's not recommended)
-Login = root
-# Database connection password
-Password = toor
+# Default: jdbc:mariadb://localhost/l2jgs
+URL = jdbc:mariadb://localhost/l2jgs
+# Database User
+Login = l2j
+# Database Password
+Password = l2jserver2019
 
 # Database Connection Pool
+# Available: BoneCP, C3P0, HikariCP, ApacheDBCP, ViburDBCP
 # Default: HikariCP
-# Available: BoneCP, C3P0, HikariCP
 ConnectionPool = HikariCP
 
 # Default: 100