I copied your code and created a database according to your code and I found two errors.
You have written "com.mysql.Jdbc.Driver". here 'J' of Jdbc should be in lowercase it should be "com.mysql.jdbc.Driver"
vicky amrev wrote:
one more mistake you have not mentioned any user name and password in below code, do mention the username and password for your mysql.
conn = DriverManager.getConnection(
rs = conn.createStatement().executeQuery("select * from student");
It should be DriverManager.getConnection("jdbc:mysql://vicky-PC/student","root","password"); here root is default username for mysql and enter the password set while installing it.
Rest of the code is Correct. All the best!!