How to Create Multi User Login Form in java using MySQL Database ? [With Source Code]

Sdílet
Vložit
  • čas přidán 8. 06. 2018
  • Support us on Patreon: / runcodes
    This video will show you how you can create multi user login form in java using MySQL database in NetBeans IDE.
    Login form in java using MySQL database and NetBeans IDE: • How to Create a Login ...
    Login form in java using SQL Server Database and NetBeans IDE: • How to Create Login Fo...
    Download MySQL connector: dev.mysql.com/downloads/conne...
    Source Code: runcodes.tech/programming/jav...
    Login attempt form without database connectivity: • How to Create Login At...
    Login attempt limit form using database connectivity: • How to Create Login At...
    Create Simple Login Form in Java: • Create Simple Login Fo...
    How To Insert Update Delete And Display Data In jTable [Part-2]: • Java And MySQL - How T...
    How To Insert Update Delete And Display Data In jTable [Part-1]: • Java And MySQL - How T...
    How to Show jTable Selected Row into jTextField in java: • How to Show jTable Sel...
    How to Connect jComboBox with Database in java: • How to Connect jComboB...
    login form in java using SQL Server and NetBeans IDE: • How to Create Login Fo...
    Simple Login form in java using NetBeans IDE: • Create Simple Login Fo...
    Send Free SMS using Java part-1[email-to-sms]: • How to Send Free SMS u...
    Send Free SMS using Java part-2[email-to-sms]: • How to Send Free SMS u...
    Send Free sms using java[SMS API]: • How to Send Free SMS F...
    Follow us on Social Media:
    Facebook: RunCodesPage
    Instagram: runcodes
    Twitter: RunCodesTwit
    This video is created by Ran and RunCodes own this video. Using of this video on other channels without prior permission will be strictly prohibited. (Embedding to the websites is allowed).. So stop copying and be a responsible people.
    #MultiUserLogin #MultiUserLoginJava #javaMultiUserLogin
  • Věda a technologie

Komentáře • 98

  • @tristisludos
    @tristisludos Před 3 lety +3

    Yo thanks for the video mate, keep up the good work PogChamp

  • @ProjectosAIChatbots
    @ProjectosAIChatbots Před 4 lety +5

    I wish one day to find a video where the person goes straight to the point and not talking too much

  • @sanoshjacob115
    @sanoshjacob115 Před 4 lety +1

    thank you very much broo.it help me with my mini project ;;

  • @RunCodes
    @RunCodes  Před 2 lety +1

    do you like our work?
    does this tutorial help you?
    if so, you can support us at www.patreon.com/RunCodes

  • @jjangjjangman9698
    @jjangjjangman9698 Před 2 lety

    Thank you so muchhhh! Such a big help. Love yahh ~~

  • @nalakaweerakon5713
    @nalakaweerakon5713 Před 4 lety

    Fantastic. Good job.thanx!

  • @chaidarsaad8421
    @chaidarsaad8421 Před 3 lety +1

    thankyou sir you have done complete my project

  • @Alukardo11
    @Alukardo11 Před 5 lety +2

    Thank you , this help me with my project. i work perfect

  • @ashwaniyadav3661
    @ashwaniyadav3661 Před 6 lety

    Thanks for this video

  • @thisaraharshana2168
    @thisaraharshana2168 Před 3 lety

    Thank you very much sir.

  • @OfficialMinor
    @OfficialMinor Před 4 lety

    Thank you very much

  • @KARAOKEQUALITY
    @KARAOKEQUALITY Před 5 lety +1

    thank you sir

  • @Ghadah1
    @Ghadah1 Před 2 lety

    Thank you !

  • @enderj295
    @enderj295 Před rokem

    Thanks Kuys))))

  • @nptidurg
    @nptidurg Před 4 lety

    Hello Sir, If I want Multi-User Login form in Android Studio using MySQL, Then what to be done?

  • @Smirklaugh
    @Smirklaugh Před 3 lety

    Thank You

  • @RecoverIman01
    @RecoverIman01 Před 3 lety

    Thanks Bro

  • @vaishnavikhedakar4619
    @vaishnavikhedakar4619 Před 3 lety

    Error show could not find or load main class ecops.NewJFrame...
    How to resolve this error

  • @fatima1795
    @fatima1795 Před 7 měsíci

    Thank u sir

  • @hamidshiaikh3544
    @hamidshiaikh3544 Před 6 měsíci

    Where is the source code file in your blog I m not getting it I have find

  • @manojchandthaquree7821

    How to integrate it with login and signup page sir

  • @safaeahmaddouch3454
    @safaeahmaddouch3454 Před 4 lety +1

    what if we are working with JavaFX ?
    I couldn't matche this code with mine !
    could you help me?

  • @ANSH-xm7ht
    @ANSH-xm7ht Před 5 lety +1

    if 2 different users log in they both are directed ti the same page wit same information. my question is how to store the value which was input by the user in the previous form and the new form remembers the value...

    • @RunCodes
      @RunCodes  Před 5 lety

      stackoverflow.com/questions/9834915/how-to-pass-a-variable-value-from-one-jframe-to-another-jframe-in-netbeans this may help you!

    • @makkimalik2594
      @makkimalik2594 Před 5 lety

      i have a Question and want to ask from u

    • @ANSH-xm7ht
      @ANSH-xm7ht Před 5 lety

      @@RunCodes thankyou

  • @vaishnavikhedakar4619
    @vaishnavikhedakar4619 Před 3 lety

    Plz resolve my error sir , you have an error in your SQL syntax check the manual that corresponds to your MySQL server version for right syntax to use near "ecops" WHERE username='admin' and usertype='admin' at line १

  • @UncleofGeorge
    @UncleofGeorge Před 5 lety

    Dear brother can you help me on using the Java Sphinx library file to use it in my program?

  • @bharatthapa9104
    @bharatthapa9104 Před 4 lety +6

    hi there , I want the same feature without selecting user type in log in frame . user jst need to enter their id and password and our program should auto recognize the user type .. How could it be possible ? and thanks for the video..

  • @ADevGaming
    @ADevGaming Před 4 lety

    I run and i klick login and write out { parameter index out of range ( 1 > number of parameters, which is 0 )

    • @RunCodes
      @RunCodes  Před 4 lety

      add value of combobox and see the code carefully.

  • @astiginko
    @astiginko Před 4 lety

    I have an error with DriverManager it says cannot find symbol please help. thanks

    • @RunCodes
      @RunCodes  Před 4 lety

      write it correctly and import classes,
      import java.sql.Connection;
      import java.sql.DriverManager;
      import java.sql.PreparedStatement;
      import java.sql.ResultSet;

  • @anginanyouth6840
    @anginanyouth6840 Před 3 lety

    Good Day, is that possible to create multi login user without Combo box? the code can detect if the usertype is admin and it direct to admin jframe and when it is user, it will direct to user? without combobox?

    • @RunCodes
      @RunCodes  Před 3 lety

      Possible, but its complicated!

    • @anginanyouth6840
      @anginanyouth6840 Před 3 lety

      @@RunCodes Thank you for a Response and I already made it now.

  • @DRealSmiley
    @DRealSmiley Před 7 měsíci

    is it required to have combo box to recognize the admin or user?

    • @RunCodes
      @RunCodes  Před 7 měsíci +1

      that’s why we use it!

  • @shanphofficial39
    @shanphofficial39 Před 5 lety +1

    why getText Cannot find symbol in my program ?

  • @vaishnavikhedakar4619
    @vaishnavikhedakar4619 Před 3 lety

    How to resolve this error : No suitable driver found for jdbc:mysql://localhost/ecops

    • @RunCodes
      @RunCodes  Před 3 lety

      add driver library on your library folder! I showed you, watch the full video!

  • @sumaiyar4047
    @sumaiyar4047 Před 5 lety

    can you please tell the server you used?

  • @irenepaclesobredo8892
    @irenepaclesobredo8892 Před 2 měsíci

    pst = con.prepareStatement(query); is error why?

  • @charleduardnarvaez4259

    you have an error in your sql syntax check the manual that corresponds to your mariadb server version

  • @resaseptiana755
    @resaseptiana755 Před 4 lety

    Error "AWT-EventQueue-0" java.lang.NullPointerException,,how to fix..??

    • @RunCodes
      @RunCodes  Před 4 lety

      Check your button code!

    • @resaseptiana755
      @resaseptiana755 Před 4 lety

      Ok it's worked,, But I want to add user type on combo button,, so what should I do for this case..??

  • @SungSiao
    @SungSiao Před 5 lety +2

    No suitable driver found for jdbc :(

    • @RunCodes
      @RunCodes  Před 5 lety +1

      Add myqsl connector for java in your project libraries folder!

    • @aishwaryabala3775
      @aishwaryabala3775 Před 4 lety

      @@RunCodes hi.. Even after adding.. It's like this

  • @sanoshjacob115
    @sanoshjacob115 Před 4 lety

    How to check user name and password if it had n users and passwords in the database

    • @RunCodes
      @RunCodes  Před 4 lety

      use select query
      String username=txtUser.getText();
      String password=txtPass.getText();
      final String queryCheck = "SELECT count(*) from table-name WHERE username= ? and password=?";
      final PreparedStatement ps = conn.prepareStatement(queryCheck);
      ps.setString(1, username);
      ps.setString(2, password);
      final ResultSet resultSet = ps.executeQuery();
      if(!(resultSet.next())) {
      //do your things
      }

  • @MrFred-vy9pi
    @MrFred-vy9pi Před 2 lety

    I Have a problem at 8:44 . The prepare Statement has an error, what would I do?

    • @RunCodes
      @RunCodes  Před 2 lety

      Whats the error?

    • @tom3704
      @tom3704 Před 2 lety

      @@RunCodes i have an error on this line too, it shows:
      cannot find symbol
      symbol method: prepareStatement(String)
      location variable con of type Connection
      how can this error be resolved?

    • @RunCodes
      @RunCodes  Před 2 lety

      PrepareStatement

  • @chandrasekar-jd1se
    @chandrasekar-jd1se Před 5 lety

    (String query=select *....username=? And password=? )Why ? Is used in code can you answer pls it's urgent

    • @RunCodes
      @RunCodes  Před 5 lety

      ? Is replace by pst.setString(1, yoirvariablename) first ? replace by 1 and so on!

  • @adelmouhib7472
    @adelmouhib7472 Před 5 lety

    thank you su much

  • @samuelstephen6769
    @samuelstephen6769 Před 3 lety

    ?Have no idea what you are saying, sorry sir but no offence, I cannot follow your accent. But I know you provided a great tutorial for those who benefited! All the best to you.

  • @motivator962
    @motivator962 Před 5 lety

    It shows me you must configure either the server or JDBC driver

  • @houdabelabdoun4063
    @houdabelabdoun4063 Před 2 lety

    And if i use two database?

  • @SanzayThapa
    @SanzayThapa Před 6 lety

    padera vanex kya

  • @uziee5911
    @uziee5911 Před 5 lety

    "else' without if error

  • @sempakkadal1654
    @sempakkadal1654 Před 4 lety

    Use XAMPP? is work ?

  • @ADevGaming
    @ADevGaming Před 4 lety

    whether DriverManager is also added to Java import ??

    • @RunCodes
      @RunCodes  Před 4 lety

      watch video!

    • @ADevGaming
      @ADevGaming Před 4 lety

      I run and i klick login and write out { parameter index out of range ( 1 > number of parameters, which is 0 )

  • @dilushajayanidu6305
    @dilushajayanidu6305 Před 3 lety

    not working

  • @borgar4357
    @borgar4357 Před 2 lety

    this tutorial could be better only if you presented the necessary Library packages FIRST instead of explaining everything FIRST without saying the necessary packages and then only showing the necessary packages when the video is ending. you don't know how much headache and frustration you have done to me because I can't follow the video accordingly because I don't understand WHY can you import the SQL.* and you didn't show that you already added it to your project to begin with.
    but anyway,
    the tutorial was great and syntaxes are easy to understand, but wasn't stated the necessary items in the beginning of the video.

  • @Attee_Q
    @Attee_Q Před 4 lety

    No HD?

  • @tharinduwijayarathna
    @tharinduwijayarathna Před 2 lety

    Thank you very much

  • @DimuthuJayanath
    @DimuthuJayanath Před 3 lety

    Thanks Bro