title: How to hide MySQL Connection String- Username and Password on GitHub (Java)
body: <p>I have been trying to find a solution to a dilemma I currently have. So I am doing a small project creating a simple POS system and I use Oracle MySQL database for storing information such as user passwords, item names, prices, etc. I am using Amazon AWS for the host. When I connect to it in my code I use </p>
  
  <pre><code>Connection conn=DriverManager.getConnection("amazon host url","some username","somepassword");
  </code></pre>
  
  <p>Some username, somepassword, and amazon host url are the real values in my code, I am just using this for obvious reason. </p>
  
  <p>Now, if I were to upload my code to github then my MySQL connection would become public and people could connect to it. How can I hide this information, but still upload my code onto github? I have been looking online, but I can only see solutions regarding PHP, if anyone could help me out with this problem that would be great.</p>