Preparing a MySQL database

The MySQL database is an Oracle Corporation RDBMS that requires a GPL (General Purpose License) or proprietary license.
Prerequisites: Your computer has access to the Internet. You are preparing a database for the first time.
  1. Make a MySQL folder on your desktop or somewhere else on your hard drive.
  2. Download and extract three resources from http://dev.mysql.com (downloading may require you to create an Oracle Account).
    • MySQL Community Server
    • Connector/J: for this standardized database driver, scroll down to MySQL Connectors. The connector may be named mysql-connector-java-x.x.x.jar, where x.x.x is the version number.
    • MySQLWorkbench (For this application, scroll down to MySQL Workbench.)
  3. Run the installer.
    Select the Full option, which installs both the server and MySQL Workbench. For Type of Networking, select Server Computer.
    The installer sets up the server and MySQL Workbench.
  4. If possible, verify with the framework release documentation that the version of the Connector/J you downloaded is compatible with the framework.
  5. Locate and rename the Connector/J to this generic name: mysql-connector-java.jar.
  6. Copy the renamed Connector/J to your C:\Niagara\Niagara.home\jre\lib\ext folder,
    where: C: represents your drive, and Niagara\Niagara_home represents the location and version number of your unique N4 installation.
  7. Use MySQL Workbench to create a new schema (new database) and get it running.
    Make sure that the new schema has a default Charset/Collation of latin1, latin1_bin, a user account other than “root,” and a strong password.
     NOTE: The MySQL default “root” user connects only to a schema associated with localhost. For maximum flexibility and security, create a custom user for your schema. 

    As a minimum, you will need this information to connect from the Supervisor station to the database:

    • Name of the MySQL schema (used in the Database Name property)
    • User Name (other than “root”) required to access the schema (used for the User Name property)
    • Password required to access the schema (used for the Password property)