Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pop up of a small login window which uses Hibernate to connect to a local mysql database to see if the login can be concluded or not.

License

NotificationsYou must be signed in to change notification settings

awcasella/Simple-Login-Java-MySQL

Repository files navigation

A Java MySQL app which pops up of a small login window. This window connects to a local mysql database to see if the login can be concluded or not.

About this Project

This project's goal is to create a simple login app on which the user can enter theusername andpassword and click login buttom. Ifusername andpassword are in the database, then a message dialog will pop up and yell the success; else, another message dialog will pop yelling the failure.

Getting Started

Prerequisites

To run this project, you'll need to have a basic environment to run a Java, MySQL App.

Installing

Cloning the Repository

$ git clone https://github.com/awcasella/Simple-Login-Java-MySQL.git$ cd Simple-Login-Java-MySQL

Installation of XAMPP for MySQL and Java

  • XAMPP installation tutorial can be found inhere.

Java Installation

$ sudo apt install default-jre$ sudo apt install default-jdk

Run projectOpen XAMPP and start MySQL Database and Apache Web Server.

After that, open the terminal and start MySQL

$ mysql -u root -p

Configure local database to be connected by our app:

> create database if not exists login;> create table if not exists login(username VARCHAR(15) PRIMARY KEY,password VARCHAR(15) NOT NULL,email VARCHAR(25) NOT NULL,fname VARCHAR(15) NOT NULL,lname VARCHAR(15) NOT NULL,);> insert into login values ('jdoe', '2020', 'jdoe@domain.com', 'John', 'Doe');

Note: It is imperative to create a table named 'login' with the columns named 'username, password, email, fname, lname'. Otherwise, either the program will throw an exception or you'll have to change the code lines to make it compatible with the database.

Open NetBeans (or other IDE) and run the project. Make sure the file MySQLTest.java is the main file of the project.

Built With

  • NetBeans: Fits the pieces together.

  • MySQL: The world's most popular open source database.

  • XAMPP: Installers and Downloaders for Apache Friends.

References

About

Pop up of a small login window which uses Hibernate to connect to a local mysql database to see if the login can be concluded or not.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp