xuxueli / xxl-job

A distributed task scheduling framework.(分布式任务调度平台XXL-JOB)
http://www.xuxueli.com/xxl-job/
GNU General Public License v3.0
27.46k stars 10.86k forks source link

登陆报错 #1941

Open Hanfee opened 4 years ago

Hanfee commented 4 years ago

Please answer some questions before submitting your issue. Thanks!

Which version of XXL-JOB do you using?

2.2.0

Expected behavior

Actual behavior

Steps to reproduce the behavior

Other information

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

The error may exist in class path resource [mybatis-mapper/XxlJobUserMapper.xml]

The error may involve com.xxl.job.admin.dao.XxlJobUserDao.loadByUserName

The error occurred while executing a query

Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

Hanfee commented 4 years ago

我用的是docker 部署。启动命令为docker run -p 8080:8080 -v /tmp:/data/applogs --name xxl-job-admin -d xuxueli/xxl-job-admin:2.2.0

samz406 commented 4 years ago

看下你的mysql版本是好多

Hanfee commented 4 years ago

已经解决,因为mysql的数据表未创建