title: How to successfully access the database on another computer using java and jdbc and sql?
body: <p>i have this database on another pc and i want to access it by using a connection string like this. </p>
  
  <pre><code>Class.forName("com.mysql.jdbc.Driver");
           con = DriverManager.getConnection("jdbc:mysql://192.168.0.1/dbtina","root","1234");
  </code></pre>
  
  <p>the "dbtina" is our database. the "1234" is our password. and we have configured our ip to be like that because we are using a wired connection (peer to peer).</p>
  
  <pre><code>Exception: Communications link failure
  
  Last packet sent to the server was 0 ms ago.*
  </code></pre>
  
  <p>how do i fix this? </p>