import the library_db_backup.sql into mysql database.
change the file hibernate.cfg.xml(src/main/resources)
In the line name="connection.username" change the username as your mysql username
In the line name="connection.password" change the password as your mysql password
open project structure/Artifacts delete all the artifacts remained in the Artifacts and use "+" to add a "Web Application: Exploded From Models" select LibrarySystem.
Open "Run/Debug Configurations", select "tomcat", select "Deployment" delete remained artifact and add a new artifact use "+" then choose apply. Please choose a not occupied port in run configuration
Use run to start the project.