Mysql数据库无法创建连接池

时间:2020-01-20 01:51:28

标签: mysql glassfish-4

我正在尝试在mysql管理控制台窗口中创建连接池。我将mysql驱动程序添加到以下路径 C:\ Program Files \ glassfish-4.1 \ glassfish \ domains \ domain1 \ lib 。但是问题是当我尝试在控制台窗口中ping通连接时,出现以下错误。

警告:RAR8054:为池[AffableBeanPool]创建未池化的[测试]连接时发生异常,类名错误或未为以下项设置类路径:com.mysql.jdbc.jdbc2.optional.MysqlDataSource 严重:RestResponse.getResponse()给出失败。端点='http://localhost:37341/management/domain/resources/ping-connection-pool.json'; attrs ='{id = AffableBeanPool}'

然后我像这样逐步创建连接。 enter image description here

然后,我选择了现有的数据源。 enter image description here

最后,我创建了池。 enter image description here

0 个答案:

没有答案
相关问题