This document demonstrates how to set up a connection to a MySQL database from the NetBeans IDE. Once connected, you can begin working with MySQL in …
source
This document demonstrates how to set up a connection to a MySQL database from the NetBeans IDE. Once connected, you can begin working with MySQL in …
source
28 responses to “Java Database Connectivity with MySQL in NetBeans”
how to make this library global.
Thanks
hay bro your video is perfect but please make video quality improve
we have to add connector to all jdbc file ?
if we dont use netbean then how we can connect with database ?
Thank you so much for this video. It worked!
Derby is the inbuilt java db in netbeans so if u dont use mysql(explicitly) then derby is the alternate to use the database
the worst among those tutorials
Merci
achaa can u upload video for inserting and deleting data thrugh connectivity
how to message "There is no such record exist" instead of "illegal operation on empty result"
Give us the code 🙂
Hindus, suck dick, RUSSIAN PROGRAMMERS BETTER
I wrote ur demo code as like as given in demo but it doesn't retrieve database result.
It only says after run "Build Successful "
But data of database Demo doesn't appear.
Plz see my problem…
package Demo;
import java.sql.*;
public class Demo {
public static void main(String[] args)
{
try
{
String Query = "Select * from student where rollno = 2 " ;
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost/Demo","root","0");
Statement st = con.createStatement();
ResultSet rs = st.executeQuery(Query);
rs.next();
String name = rs.getString(2);
System.out.println(name);
con.close();
}
catch(Exception e )
{
}
}
}
there is no sound -_-
nice topic but you speaking too far from you mic, could you improve video quality? thanks
hey can u help me , I tried but getting error.
i can't see what do you write :/
No se alcanza a ver mucho
Java Database Connectivity with MySQL in NetBeans
Gracias….Thanks…Merci…:D
Nice Video but clarity is poor. Not able to see text clearly but still better
Very informative even if the audio and video were subpar. Instead of including a jar file, I include the mysql library and it still worked with my database. Thank you.
use good quality mic
With all due respect on your efforts in explaining, @ 09:55 you say "here is derby and i used mysql… you can do whatever you want"… could you pls elaborate on that?
If I am not wrong, you should be choosing the mysql driver name just above the host.
The reason i was here is that i could not get connected to mysql server from netbeans where as from mysql workbench i could. can help me?
Thanks Alot 🙂
Nice video for beginers
Thanks! This helped get me going.
Good work.
Try to use good mic.