-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #7 - added MySQL driver to dependencies and changed exception …
…flow so that the main method throws exceptions. This will allow the maven plugin to fail gracefully.
- Loading branch information
Showing
9 changed files
with
73 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
Installing MySQL: | ||
- download and install MySQL (ensure Connector/J is installed too) | ||
- set the username to 'root' and password to 'Excellence' | ||
if you've already installed MySQL with different credentials, need to set these in db project | ||
- set the username to 'root' and password to 'Excellence' | ||
if you've already installed MySQL with different credentials, need to set these in db project | ||
|
||
Setting up our database: | ||
- open the MySQL workbench (at least, if you're like me and like easy-to-use GUIs!) | ||
- create schema 'eclipse' with default collation | ||
- set newly created schema as the default schema | ||
- set newly created schema as the default schema | ||
- execute 'create_tables_mysql.sql' script (found in the same folder as this document) | ||
|
||
Getting it working with our project: | ||
- add the J Connector jar file to your system's classpath | ||
- J Connector should have been installed with MySQL; if not, download and extract locally | ||
- instead of adding to classpath, can copy and past jar file to your JRE lib\ext folder (ex. C:\Program Files\Java\jre7\lib\ext) | ||
- J Connector should have been installed with MySQL; if not, download and extract locally | ||
- instead of adding to classpath, can copy and past jar file to your JRE lib\ext folder (ex. C:\Program Files\Java\jre7\lib\ext) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
DROP TABLE IF EXISTS maven_p2; | ||
|
||
CREATE TABLE maven_p2 | ||
( | ||
id SERIAL, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters