We are making simple java project. program will be a standalone .
I have searched but I could not find any sample source code for how to take registration.
I want to use Mysql as a database I connect my project to database .
Now what will I do is there any sample source code for taking registration and using this information as log in information.
note : I don’t know anything about Mysql I am trying to learn for finishing the project.
Follow the steps:
1. Download Mysql and Install+ dwnload mysql-connector jar file.
2. in the mysql(u can connect using mysql command line client) provide ur pwd and get ready.
Put below code:
3.
create database TEST4.
use TEST.5.
CREATE TABLE USER_DTLS (USERNAME VARCHAR2(100), PASS VARCHAR2(100));creating tables6.
INSERT INTO USER_DTLS('user1', 'user1234');INSERT INTO USER_DTLS('user2', 'user1234');creating users7. To connect to mysql:
in JAVA:
Hope this helps.