Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import java.sql.Connection;
  2. import java.sql.SQLException;
  3.  
  4. public class main {
  5.  
  6. public static void main(String[] args) {
  7. // TODO Auto-generated method stub
  8. String userName = "root";
  9. String password = "" ;
  10. String dbms = "mysql";
  11. String portNumber = "55555";
  12. //String connectionProps = "";
  13. String serverName = "127.0.0.1";
  14. String dbname = "Hurtownia";
  15. Connect connect = new Connect(userName,password,dbms,portNumber,serverName);
  16. Receive receive = new Receive();
  17. Connection polaczenie = null;
  18. try {
  19. polaczenie = connect.getConnection();
  20. Receive.viewTable(polaczenie,dbname);
  21. } catch (SQLException e) {
  22. // TODO Auto-generated catch block
  23. e.printStackTrace();
  24. }
  25.  
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement