title: Connecting docker to MySQL Database
body: <p>Am new to debezium, am trying to connect my kafka connector to my already existing MySQL database on my WAMP server locally.</p>
  
  <p>I started zookeeper and kafka according to the tutorial documentation and then I started kafka connector. In my post man I sent the following JSON to my kafka connector but I keep getting a bad request response. </p>
  
  <p>Start Zookepper</p>
  
  <pre><code>docker run -it --rm --name zookeeper -p 2181:2181 -p 2888:2888 -p 3888:3888 debezium/zookeeper:0.7
  </code></pre>
  
  <p>Start Kafka</p>
  
  <pre><code>docker run -it --rm --name kafka -p 9092:9092 --link zookeeper:zookeeper debezium/kafka:0.7
  </code></pre>
  
  <p>Start Kafka Connector</p>
  
  <pre><code>docker run -it --rm --name connect -p 8083:8083 -e GROUP_ID=1 -e CONFIG_STORAGE_TOPIC=my_connect_configs -e OFFSET_STORAGE_TOPIC=my_connect_offsets --link zookeeper:zookeeper --link kafka:kafka debezium/connect:0.7
  </code></pre>
  
  <p>Using my Post Man I sent the following</p>
  
  <pre><code>{ "name": "shopcentra-connector", "config": { "connector.class": "io.debezium.connector.mysql.MySqlConnector", "tasks.max": "1", "database.hostname": "127.0.0.1", "database.port": "3306", "database.user": "root", "database.password": "root", "database.server.id": "5444", "database.server.name": "shopcentra", "database.whitelist": "shopcentra", "database.history.kafka.bootstrap.servers": "kafka:9092", "database.history.kafka.topic": "dbhistory.shopcentra", "include.schema.changes": "true" } }
  </code></pre>
  
  <blockquote>
    <p>My Bad Response</p>
  </blockquote>
  
  <pre><code>{
  "error_code": 400,
  "message": "Connector configuration is invalid and contains the following 1 error(s):\nUnable to connect: Communications link failure\n\nThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.\nYou can also find the above list of errors at the endpoint `/{connectorType}/config/validate`"
  }
  </code></pre>