title: how to escape special characters in mysql jdbc connection string
body: <p>im trying to connect to a remote database. im sure that the remote database provide me all the privileges. but im getting this error when trying to connect to the remote mysql database through <code>jdbc connection</code>. my password contains, <code>* and &amp; symbol</code>, i think that is the problem cause to this <code>error</code>. but i dont know how to <code>escape those characters</code>. please help</p>
  
  <pre><code>java.sql.SQLException: Access denied for user 'myusername'@'myhost' (using password: YES)
  
  "jdbc:mysql://myhost/mydb?user=myusername&amp;password=my&amp;password*"
  </code></pre>
  
  <p>please help</p>
  
  <p>Regards</p>