2604960388
这个数据库 链接 url 如何填?

url: jdbc:mysql://127.0.0.1:3306/database_name 不行


__FELT
database_name是数据库名 一般和你设置的用户名一致 去后台看一眼就知道了
127.0.0.1:3306/xxxx

ZeroExact
例如我的数据库在本机,库名叫做abcabc
url: jdbc:mysql://127.0.0.1:3306/abcabc
进入mysql输入show databases;查看库是否存在
不存在的话请先输入create database xxx;进行创建

2604960388
__FELT 发表于 2022-11-2 00:53
database_name是数据库名 一般和你设置的用户名一致 去后台看一眼就知道了
127.0.0.1:3306/xxxx
...
  1. [12:44:45] [Server thread/ERROR]: [CosmeticsCore] SLF4J: No SLF4J providers were found.
  2. [12:44:45] [Server thread/ERROR]: [CosmeticsCore] SLF4J: Defaulting to no-operation (NOP) logger implementation
  3. [12:44:45] [Server thread/ERROR]: [CosmeticsCore] SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
  4. [12:44:45] [Server thread/WARN]: [CosmeticsCore] Task #164635 for CosmeticsCore v1.0.3 generated an exception
  5. java.lang.RuntimeException: Failed to get driver instance for jdbcUrl=127.0.0.1:3306
复制代码

2604960388
ZeroExact 发表于 2022-11-2 01:54
例如我的数据库在本机,库名叫做abcabc
url: jdbc:mysql://127.0.0.1:3306/abcabc
进入mysql输入show datab ...
  1. [12:44:45] [Server thread/ERROR]: [CosmeticsCore] SLF4J: No SLF4J providers were found.
  2. [12:44:45] [Server thread/ERROR]: [CosmeticsCore] SLF4J: Defaulting to no-operation (NOP) logger implementation
  3. [12:44:45] [Server thread/ERROR]: [CosmeticsCore] SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
  4. [12:44:45] [Server thread/WARN]: [CosmeticsCore] Task #164635 for CosmeticsCore v1.0.3 generated an exception
  5. java.lang.RuntimeException: Failed to get driver instance for jdbcUrl=127.0.0.1:3306
复制代码