// sound kesi h video me ab and ye code aap loog copy kar sakte ho next video me ye sab smja dunga don't worry agar apne meri JDBC in 10 mintues ki video dekhi h tab apko smaj a rha hoga ye code i guess ? JDBC in 10 min - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-MOQfTuOiBys.html Eclipse Setup - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FbOfNoXrevY.html VS code setup - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--0X0BHLE0Dg.html ---------------------------------------------- import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; import javax.swing.JOptionPane; public class CreateDB { public static void main(String[] args) throws Exception { try { String url = "jdbc:mysql://localhost:3306/"; String databaseName = "shivam"; String userName = "root"; String password = "BangBang@1234"; Connection connection = DriverManager.getConnection(url,userName, password); String sql = "CREATE DATABASE " + databaseName; Statement statement = connection.createStatement(); statement.executeUpdate(sql); statement.close(); JOptionPane.showMessageDialog(null, databaseName + " Database has been created successfully", "System Message", JOptionPane.INFORMATION_MESSAGE); } catch (Exception e) { e.printStackTrace(); } } }
Hi sir i have downloaded Mysql installer 8.0.34 & in this my sql java connector not present so plz suggest me which version of java connector i have download?
Sir ive only three items in mySpl "Mysql documentation 8.0", "Mysql installer for windows", "sample and example 8.0"....what should i do to get connector...??
I am using vs code. when i simply click on 'run code' i am getting driver not found error. Then i downloaded 'Extension Pack for java' from the vs code extension menu. This has a separate option to run java. Whenever i click on 'run java' then it works but when i click on 'run code' it doesn't work.
make sure you are downloading the latest version AS this happens with older versions and since new vesion mai connector included nahi hota toh same version wala tumhe download karna hoga connector.
sir i am not6 able to do it pls help my situation is first i download the mysql installer and set the password but later i got to know that it is not the correct version so uninstalled everything and then again downloaded everything but at the stage of setting password it is not showing the same page as before so i thought i need to put the previous password ,so i did but again i am stuck pls help 😭😭
@CodingWallahSir Sir mere device me MySQL already installed hai but maine sirf workbench , shell and server install kiya tha to ab agar me firse install karuga to mere existing databases pe koi effect nahi hoga na ? and plus sir mujhe visual studios ka option hi nahi aa raha downloads me .
how can i get sql command line client ? bhai please help me iam unable to find command line client is this any seperate software which we have to install irrespective to sql ????
Command line client aa jaega apane aap, bas sir ne jesa kiya vesa karo. Kaha se open karna h batata hu : Press win key, then type Mysql, dikh jaega, password daal ke khol lena