这个数据库 链接 url 如何填?
url: jdbc:mysql://127.0.0.1:3306/database_name 不行
url: jdbc:mysql://127.0.0.1:3306/database_name 不行
database_name是数据库名 一般和你设置的用户名一致 去后台看一眼就知道了
127.0.0.1:3306/xxxx
127.0.0.1:3306/xxxx
例如我的数据库在本机,库名叫做abcabc
url: jdbc:mysql://127.0.0.1:3306/abcabc
进入mysql输入show databases;查看库是否存在
不存在的话请先输入create database xxx;进行创建
url: jdbc:mysql://127.0.0.1:3306/abcabc
进入mysql输入show databases;查看库是否存在
不存在的话请先输入create database xxx;进行创建
__FELT 发表于 2022-11-2 00:53
database_name是数据库名 一般和你设置的用户名一致 去后台看一眼就知道了
127.0.0.1:3306/xxxx
...
- [12:44:45] [Server thread/ERROR]: [CosmeticsCore] SLF4J: No SLF4J providers were found.
 
- [12:44:45] [Server thread/ERROR]: [CosmeticsCore] SLF4J: Defaulting to no-operation (NOP) logger implementation
 
- [12:44:45] [Server thread/ERROR]: [CosmeticsCore] SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
 
- [12:44:45] [Server thread/WARN]: [CosmeticsCore] Task #164635 for CosmeticsCore v1.0.3 generated an exception
 
- java.lang.RuntimeException: Failed to get driver instance for jdbcUrl=127.0.0.1:3306
 
ZeroExact 发表于 2022-11-2 01:54
例如我的数据库在本机,库名叫做abcabc
url: jdbc:mysql://127.0.0.1:3306/abcabc
进入mysql输入show datab ...
- [12:44:45] [Server thread/ERROR]: [CosmeticsCore] SLF4J: No SLF4J providers were found.
 
- [12:44:45] [Server thread/ERROR]: [CosmeticsCore] SLF4J: Defaulting to no-operation (NOP) logger implementation
 
- [12:44:45] [Server thread/ERROR]: [CosmeticsCore] SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
 
- [12:44:45] [Server thread/WARN]: [CosmeticsCore] Task #164635 for CosmeticsCore v1.0.3 generated an exception
 
- java.lang.RuntimeException: Failed to get driver instance for jdbcUrl=127.0.0.1:3306