Hello experts,
How to use MySQL attendance database? I am using java programming language, I hope you can share with me on how to connect my attendance system to MySQL database. Share with me your suggestions and advice regarding this issue, thank you.
How to use MySQL attendance database?
Hi Shannon,
I hope you are doing well. You can connect your database by following these setups.
1. Download MySQL database connector
2. Create a folder with the name “lib”
3. Place downloaded file in this folder
4. Add jdbc driver in your class path
5. Load driver
-
Class.forName(“com.mysql.jdbc.Driver”);
6. Get connection by calling this statement
-
DriverManager.getConnection("jdbc:mysql://localhost/Attendance?user=abc&password=abc");
I hope this will helps you. Thank you