> Overview

Database lesson 1: Set up the MySQL database for access by JAVA-applications

For this document and all references (links) please obey the hints and regulations concerning copyright, disclaimer and trademarks.

Last revision of this document:
2006-02-21

This document describes
* the creation of a database,
* giving rights to other users and
* installing the JAR (JavaArchive) -file with the package to connect to the database from a JAVA-application

Credits:

I derived the guideline how to configure a database with access rights and how to install the 'connector' for java from:
www.developer.com/java/data/article.php/3417381.

Prerequisites:

Creating a table and granting rights to a user:

Verifying the correct creation of the database and granting the rights:

top.

Install the JAR (Java-ARchive) with the package to connect to a MySQL-database.

Depending on the folder under which 'mysql-connector-java-3.1.2-bin.jar' should be stored, your user rights may not be sufficient.
If you experience problems during saving the file either do the download with 'root'-rights or save to a folder you are allowed to save.

Related Documents:

Linux - Databases
JS_Base02e - Connect to the database.