---
title: "Gerrit mysql error: Communications link failure"
author: "scm002"
date: "2017-05-24T15:31:33Z"
tags: []
categories: ["开源软件"]
slug: "gerrit-mysql-error-communications-link-failure"
draft: false
lastmod: "2017-05-24T15:31:33Z"
id: 2376165
url: "https://scm002.iteye.com/blog/2376165"
---

fatal: DbInjector failed

 

fatal: Unable to determine SqlDialect

 

fatal:   caused by com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

 

fatal:

 

fatal: The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

 

fatal:   caused by java.net.ConnectException: Connection refused (Connection refused)

 

 

 

solution:

 

将下面以行注释掉。

#bind-address           = 127.0.0.1