title: docker mysql on different port
body: <p>I want to change the default exposed port for mysql docker container, but if i try to use this command:</p>
  
  <pre><code> docker run --detach --name=test-mysql -p 52000:52000  --env="MYSQL_ROOT_PASSWORD=mypassword" mysql
  </code></pre>
  
  <p>It does not work. <code>mysql -uroot -pmypassword -h 127.0.0.1 -P 52000
  Warning: Using a password on the command line interface can be insecure.
  ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0</code></p>
  
  <p>If I use the standard port 3306:3306 then it works fine, but i want change the port. Is it possibile?</p>
  
  <p>I had already tried -p 52000:3600 , but i have always gotten:</p>
  
  <p><code>mysql -uroot -pmypassword -h 127.0.0.1 -P 52000
  Warning: Using a password on the command line interface can be insecure.
  ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0</code></p>