Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
- com.mysql.cj.exceptions.CJException: Public Key Retrieval is not allowed
- java.sql.SQLNonTransientConnectionException: Could not create connection to database server
- <property name="connection.url">jdbc:mysql://localhost:3306/stocks</property>
- <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
- <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
- autoReconnect=true
- useSSL=false
- allowPublicKeyRetrieval=true
- # Java Maven CircleCI 2.0 configuration file
- #
- # Check https://circleci.com/docs/2.0/language-java/ for more details
- #
- version: 2
- jobs:
- build:
- docker:
- # specify the version you desire here
- - image: circleci/openjdk:8-jdk
- # Specify service dependencies here if necessary
- # CircleCI maintains a library of pre-built images
- # documented at https://circleci.com/docs/2.0/circleci-images/
- # - image: circleci/postgres:9.4
- - image: circleci/mysql:latest-ram
- environment:
- - MYSQL_ROOT_PASSWORD: (my real password goes here)
- - MYSQL_DATABASE: stocks
- - MYSQL_USER: bob
- - MYSQL_PASSWORD: (the real password goes here)
- working_directory: ~/repo
- environment:
- # Customize the JVM maximum heap limit
- MAVEN_OPTS: -Xmx3200m -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
- steps:
- - checkout
- - run: sudo apt install -y mysql-client
- # Download and cache dependencies
- - restore_cache:
- keys:
- - v1-dependencies-{{ checksum "pom.xml" }}
- # fallback to using the latest cache if no exact match is found
- - v1-dependencies-
- - run: mvn dependency:go-offline
- - save_cache:
- paths:
- - ~/.m2
- key: v1-dependencies-{{ checksum "pom.xml" }}
- # run tests!
- - run: mvn integration-test
Add Comment
Please, Sign In to add comment