Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Java-based client-server application using JDBC for MySQL database connectivity

Objectives

Objectives:To develop a two-tier Java based client-server application interacting with aMySQL database utilizing JDBC for the connectivity. This project is designed to give you some experience using the various features of JDBC and its interaction with aMySQL DB Server environment.Description:In this assignment you will develop a Java-based GUI front-end (client-side) application that will connect to your MySQL server via JDBC. You are todevelop a Java application that will allow any client(the end-user) to execute commands against the database.You will create a Java GUI-based application front-end that will accept any MySQL DDL or DML command, pass this through a JDBC connection to the MySQL databaseserver, execute the statement and return the results to the client. Note that while technically your application must be able to handle any DDL or DML command, we won’t actually use all of the commands available in these sublanguages. For one thing, it would be quite rare to allow a client to create a database or a table within a database. Note too, that the only DML command that uses the executeQuery()method of JDBC is the Select command, all other DML and DDL commands utilize executeUpdate().Some screen shots of what your Java GUI front-end should look like are shown below. Basically, this GUI is an extension of the GUI that was developed in the lecture notes and is available on WebCoursesas DisplayQueryResults.java. Your Java application must give the user the ability to execute any SQL DDL or DML command for which the user has the correct permissions. Note also, that if the user wishes to change databases in the middle of a session,they must reconnect to the new database. Their user information can remain in the proper window, but you must click the reconnect button to establish a connection to the new database.You will be able to start multiple instances of your Java application and allow different clients to connect simultaneously to the MySQL server, since the default number of connectionsis set at 151 (see your Workbench options file under the networking tab).In addition, a transaction logging operation will occur which keeps a running total of the number of queries and the number of updates that have occurred via the user application. This is a separate database (i.e., completely different database than any that the user can connect to), that the application will connect, with root user privileges, and update after each user operation completes. See below for more details on this feature of your application.Once you’ve created your application, you will execute a sequence of DML and DDL commands and illustrate the output from each in your GUIfor two different users.For this project youwill create, in addition to the root user, a client user with limited permissions on the database (see below). The root user is assumed to have all permissions on the database, any commandthey issue will be executed.The client user will be far more restricted.Referencesfor this assignment: Notes: Lecture Notes for MySQLand JDBC.CNT 4714–Project Two–Summer2021 Page 2Input Specification:The first stepin this assignment is to login to the MySQL Workbench as the root user and execute/run the script to create and populate the backend database. This script is available on the assignment page and is named “project2dbscript.sql”. This script creates a database named project2. You can use the MySQL Workbench for this step, or the command line whichever you prefer.The second stepis to create authorizations for aclient user (in addition to the root user) named project2client.By default your root user has all permissions on the project2database. Use either SQL Grant statements from the command line or the MySQL Workbench (see separate document for details on how to accomplish this task) to check and set permissions for the client as follows: Register the new user named project2clientand assign them the password P2client@,and assign to this user only selection privileges on the project2schema. The third stepis to create the operationslogdatabase using the project2operationslog.sqlscript.This script file is also available on WebCourses.Output Specification: There are threeparts for the output for this project. Part 1 is to provide screen shots from your applicationwhich clearly show the complete query/commandexpression and results for each of the commandsthat appear in thescript named:project2rootuserscript.sqlavailable on the course website.There are eight different commands in this script and some of the commands will have more than one output capture (see below). Part 2 is to provide screen shots from your application which clearly show the complete query/command expression and results for each of the commands that appear in the script named: project2clientuserscript.sqlavailable on the course website.There are three different commands in this script and some of the commands will have more than one output capture (see below).Part 3 is to provide a screenshot of the operationscounttable, taken from the output of the execution of the query: select * from operationscount;, from the MySQL Workbench app (see page 10for an example of this screenshot).To produce your final output, first recreate the database, then run the root user commandsfollowed by the client command

support
Whatsapp
callback
sales
sales chat
Whatsapp
callback
sales chat
close