title: Load balancing Mysql Connections by Haproxy based on domain names in request
body: <p>I have a service discovery architecture in which i have a haproxy for TCP routing of MYSQL connections based on host names.
  For that i read in haproxy here <a href="https://www.haproxy.com/blog/enhanced-ssl-load-balancing-with-server-name-indication-sni-tls-extension/" rel="nofollow noreferrer">https://www.haproxy.com/blog/enhanced-ssl-load-balancing-with-server-name-indication-sni-tls-extension/</a>.</p>
  
  <p>It tells us it is indeed possible to route TCP connections based on host names received in TCP requests through SNI implementation.</p>
  
  <p>Now i have setup the Haproxy as per the above configuration but i am unable to figure out what changes i need to do in mysql configuration in my springboot application. 
  Also how do i test that this haproxy works through mysql client?</p>