Comments (12)
My mistake. no write how to create DB :(
you need create essentials database
execute this SQL to mysql command-line
CREATE DATABASE essentials
from essentials.
As a result, I get an error, although everything has been created and I can easily connect to the database.
[02-25-2024 06:35:39] [I] [Essentials] Loading
java.sql.SQLException: No suitable driver found for jdbc:mysql://127.0.0.1:3306/essentials
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:708)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:230)
at org.jetbrains.exposed.sql.Database$Companion$connect$8.invoke(Database.kt:278)
at org.jetbrains.exposed.sql.Database$Companion$connect$8.invoke(Database.kt:274)
at org.jetbrains.exposed.sql.Database$Companion$doConnect$3.invoke(Database.kt:165)
at org.jetbrains.exposed.sql.Database$Companion$doConnect$3.invoke(Database.kt:166)
at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManager$ThreadLocalTransaction$connectionLazy$1.invoke(ThreadLocalTransactionManager.kt:120)
at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManager$ThreadLocalTransaction$connectionLazy$1.invoke(ThreadLocalTransactionManager.kt:119)
at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:81)
at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManager$ThreadLocalTransaction.getConnection(ThreadLocalTransactionManager.kt:145)
at org.jetbrains.exposed.sql.Transaction.getConnection(Transaction.kt)
at essentials.DB$open$2.invoke(DB.kt:61)
at essentials.DB$open$2.invoke(DB.kt:61)
at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt.inTopLevelTransaction$run(ThreadLocalTransactionManager.kt:306)
at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt.access$inTopLevelTransaction$run(ThreadLocalTransactionManager.kt:1)
at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt$inTopLevelTransaction$1.invoke(ThreadLocalTransactionManager.kt:353)
at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt.keepAndRestoreTransactionRefAfterRun(ThreadLocalTransactionManager.kt:361)
at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt.inTopLevelTransaction(ThreadLocalTransactionManager.kt:352)
at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt$transaction$1.invoke(ThreadLocalTransactionManager.kt:261)
at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt.keepAndRestoreTransactionRefAfterRun(ThreadLocalTransactionManager.kt:361)
at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt.transaction(ThreadLocalTransactionManager.kt:231)
at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt.transaction(ThreadLocalTransactionManager.kt:209)
at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt.transaction$default(ThreadLocalTransactionManager.kt:208)
at essentials.DB.open(DB.kt:61)
at essentials.Main.<init>(Main.kt:51)
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at mindustry.mod.Mods.loadMod(Mods.java:971)
at mindustry.mod.Mods.load(Mods.java:465)
at mindustry.Vars.init(Vars.java:337)
at mindustry.server.ServerLauncher.init(ServerLauncher.java:48)
at arc.backend.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:64)
at arc.backend.headless.HeadlessApplication$1.run(HeadlessApplication.java:52)
from essentials.
Shouldn't it change the driver request to com.mysql.jdbc.Driver?
from essentials.
My bad 😇
I'll fix it within an hour
from essentials.
https://github.com/Kieaer/Essentials/releases/tag/v19.1
from essentials.
The problem is not solved, now it connects to the local db according to the standard, but the external db is specified in the config.
from essentials.
@44wrw44 You need give "create" command permission to [email protected] account.
Use GRANT PRIVILEGE ON essentials.* TO 'wrw'@'192.168.0.111'
command to mysql command line.
And apply permission to use this command - FLUSH PRIVILEGES;
from essentials.
He has been issued rights *.*
from essentials.
@44wrw44 Can you upload this command result?
show grants for wrw@'192.168.0.111'
from essentials.
from essentials.
Found a problem, FireWall was blocking access to LAN through an isolated zone
from essentials.
If you have any other bugs or inquiries, feel free to come 🙂
from essentials.
Related Issues (20)
- Plugin Loading Error
- Game Crash HOT 2
- And if my host dosent allow me to change the startup command, i can do something? HOT 8
- java.lang.NullPointerException: it must not be null HOT 1
- java.lang.NullPointerException: it must not be null HOT 1
- AWS server stuck at 100% for 7 hours HOT 3
- Invocation Target Exception HOT 4
- Bug Report HOT 2
- java.lang.invocationTargetException
- Don't disable foo's client when antigrief is set to true HOT 2
- How do i disable foo client blocking HOT 4
- Recommendation (Private Message client command)
- Please call Database.connect() before using this code
- Coloring is not working correctly HOT 1
- [suggestion] ChatEvent Using chatFormatter HOT 2
- Server crashes on setperm HOT 1
- [Question] Local Servers HOT 9
- how read documentation?
- How setup database& HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from essentials.