This repository contains example applications for MySQL, written in Python and Java.
Requirements:
- Java JDK, probably version 1.7 or higher
- MySQL JDBC jar file
Recommended other requirements:
- IntelliJ IDE or Eclipse
- Create a new Java project
- copy the src/ directory into your project
- Add the MySQL jar file (mysql-connector-java-VERSION-bin.jar ) to your project
- In Eclipse IDE, Right click on the project, choose Build Path -> Configure Build Path..., then Add Jars...
- In IntelliJ IDE, File > Project structure > Modules > Dependencies tab > + button > Jars or directories...
- Set the environment variable DBPASSWORD to your MySQL password
- You can set variables in the Run... / Run configurations... menu
- Edit file AirlineCustomerClient.java to fill in your hawkid where indicated
- Run
Requirements:
- Python 2.7 (tested on this version, but you might try others)
- Python mysql connector
- Set the environment variable DBPASSWORD to your MySQL password
- Edit file AirlineCustomerClient.py to fill in your hawkid where indicated
- Run the application
e.g.
python AirlineCustomerClient.py