Installation of MySQL 5.0 (InnoDB Engine) and Q...

36
Installation of MySQL 5.0 (InnoDB Engine) and Q-Monitor 3.x.x

Transcript of Installation of MySQL 5.0 (InnoDB Engine) and Q...

Page 1: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

Installation of MySQL 5.0 (InnoDB Engine)

and Q-Monitor 3.x.x

Page 2: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 2

Installation of MySQL 5.0 and Q-Monitor

Installation tasksInstall MySQL 5.0 (InnoDB Engine) on Windows Install Q-Monitor 3.x.x and create the database tablesTest database connection and update database tables withQ-MonitorConnect Q-Checker to the database

Page 3: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 3

Enable MySQL Port in the Windows- Firewall

To install MySQL Server, the TCP –Port: 3306 may not be blocked bythe Windows Firewall or otherfirewall systems!

To configure Windows Firewallopen: Control Panel / Windows Firewallclick on: Exceptions / Port…

Type the name and the portnumber: 3306

Click OK

Page 4: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 4

Installation of MySQL 5.0

Download the latest MySQL 5.0.x Installation file(with installer: Windows Essentials) from the mysql.org website

Start the MySQL 5.0 installation byexecuting the installation file:mysql-essential-5.0.x-win32.msi

Click Next

Page 5: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 5

Installation of MySQL 5.0

Select setup type: Typical

Click Next

Page 6: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 6

Installation of MySQL 5.0

Click Install

Click Next

Page 7: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 7

Installation of MySQL 5.0

Make sure that the option:Configure the MySQL Server nowis set.

Click Finish

Page 8: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 8

Installation of MySQL 5.0

Click Next

Page 9: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 9

Installation of MySQL 5.0

Set the radio button to the option:Standard Configuration

Click Next

Page 10: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 10

Installation of MySQL 5.0

Set the option:Include Bin Directory in Windows PATH

Make sure that all other options areset as in the sceenshot on the right side

Click Next

Page 11: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 11

Installation of MySQL 5.0

Define a secure password for theadministrator user called root(in our example: root )

Set the option:Enable root access…

Make sure that all other optionsare set as in the sceenshot on the right side

Click Next

Page 12: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 12

Installation of MySQL 5.0

Click Execute Click Finish

Page 13: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 13

Installation of MySQL 5.0 – JDBC Connector

Download the latestConnector/J 5.0zip- archive from the mysql.orgwebsite

Extract the zip- archive into thedirectory: <MySQL installation> \ JDBC

(e.g. C:\Programme\MySQL\JDBC)

Page 14: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 14

Installation of Q-Monitor

Download the latest version of Q-MonitorExtract the zip archive qmonitor.3.x.x.zip into the directoryC:\Programme\TransCAT\QMonitor

Page 15: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 15

Installation of Q-Monitor

Copy the MySQL JDBC Connector (mysql-connector-java-5.0.x-bin.jar) from the directory: <MySQL installation> \ JDBC

(e.g. C:\Programme\MySQL\JDBC)

into the Q-Monitor installation directory(e.g. C:\Programme\TransCAT\QMonitor)

Page 16: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 16

Installation of Q-Monitor

Open the the qmonitor.bat file in the QMonitor installationdirectory with the Notepad to adapt the Java installationpath to the local installation of Java.

Add the JDBC driver to the classpath (see screenshot)

Save the file and close the Notepad

NOTE: Java runtime min. 1.4 is prerequisite for Q-Monitor and must be installed on the machine!

Page 17: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 17

Installation of Q-Monitor

Start Q-Monitor by double click onqmonitor.bat

Click on:Database Creation

Page 18: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 18

Installation of Q-Monitor

Fill out the database informationDB Name: qmonitorUser Name: qmonitorPassword: qmonitorDB Server: (e.g. localhost)OS: Windows

Enter Database Type / Port numberand table size

Choose any temporary directorywhere the SQL script createDB.sqland Q-Checker Database fileQCHECKER.db should be created(e.g. c:\tmp ).

Click Save

Close QMonitor

Page 19: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 19

Installation of Q-Monitor

The following panel appears.Click OK

The following panel appears.Click Yes

The Database connection is created andset to default in Q-Monitor.Click OK

Close Q-Monitor

Page 20: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 20

Installation of Q-Monitor

Open the Windows console:Start / Run

Write:cmd

in the text box and press OK

Page 21: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 21

Installation of Q-Monitor

Change directory to C:\tmp(the directory must contain the createDB.sql file )

Type:mysql –u root -p

into the console and press Enter

Type your root password into the console(e.g: root ) and press Enter

Note: In our example, we use the user:root with password: “root

Page 22: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 22

Installation of Q-Monitor

Type:create user qmonitor;

into the console and press Enter

Type:set password for qmonitor = password('qmonitor');

into the console and press Enter

Note: In our example, we added a new user:qmonitor with password: qmonitor

Page 23: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 23

Installation of Q-Monitor

Type:source C:\tmp\createDB.sql

into the console and press Enter

Page 24: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 24

Installation of Q-Monitor

Make sure that all task finished properlylike the screenshot on the right side.

Type:exit

into the console and press Enter

Close the console

Page 25: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 25

Installation of Q-Monitor

Complete Data for each checked Criterion

CHECK_SESSIONCHECK_ID

1707..21

1707..22

1707..23

:

..... ..... ..... .....

CHECK_CRITERION..... CHECK_ID

1707..21

:

CRITERION_NUMBER

1115

1098

1048

1099

1048

1707..21

1707..22

1707..21

1707..21

1707..22

:

CRITERION_INFOCRITERION_

NUMBER

1115

1098

:

CRITERION_NAME_DE

Modellgröße

Aktives Set

:

CRITERION_NAME_EN

Model Size

Current Set

: Header Data for each check

NLS Criterion names

Coupled by key CHECK_ID

Coupled by keyCRITERION_NUMBER

Database structure

Page 26: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 26

Installation of Q-Monitor

Start Q-MonitorClick on: Database – Define

Verify the DatabaseConnection informationClick on Test. The followingmessage should appear:

Exit the panel withSave and Close

Page 27: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 27

Installation of Q-Monitor

Click on:Update Criteria Table

Page 28: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 28

Installation of Q-Monitor

Select from theQ-Checkerinstallation directory.../adminV5/DEFAULT/db

the file CRITERIA.par

Page 29: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 29

Installation of Q-Monitor

The Criteria Tableis updated sucessfully.

Page 30: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 30

Installation of Q-Monitor

Make a new query(File – New)Choose first queryClick OK

Page 31: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 31

Installation of Q-Monitor

Start the query byclicking on „Query“Q-Monitor will show an emptygraph as long as noQ-Checker reportsare checked in.

Page 32: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 32

Adapting Q-Checker to the database

Copy the JDBC driver(e.g. C:\Programme\MySQL\JDBC\mysql-connector-java-5.0.7\mysql-connector-java-5.0.7-bin.jar )from the MySQL installation directory into the Q-Checker installation directory(e.g. D:\Programme\Transcat PLM\Q-Checker\load ) Adapt the following lines in the file <Q-CheckerInstallationDir>\qcheckerV5.vbs to your local installation of Java and to the MySQL JDBC driver

Page 33: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 33

Adapting Q-Checker to the database

Adapt the CATIA environment text file (by default it is located inC:\Documents and Settings\All Users\Application Data\DassaultSystemes\CATEnv) and enable the Q-CheckerDatabase License (QCLICDB=YES) NOTE: The license TC-qcheckerV5-DB must be available!

Page 34: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 34

Adapting Q-Checker to the database

Adapt the file <Q-CheckerInstallationDir>\adminV5\<Environment>\QCHECKER.par and enable the Database Connection for batchand interactive mode.

Page 35: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 35

Adapting Q-Checker to the database

Copy the file QCHECKER.db which was created during thesetup of the database by Q-Monitor (e.g: c:\tmp ) into thedirectory: <Q-CheckerInstallationDir>\adminV5\<Environment>\db

Verify that the values match with the connection parameters used inQ-Monitor.

Page 36: Installation of MySQL 5.0 (InnoDB Engine) and Q …transcat-plm.com/.../Q-Monitor_-_Installation_of_MySQL.pdfTRANSCAT – March 08 Page 2 Installation of MySQL 5.0 and Q-Monitor Installation

TRANSCAT – March 08 Page 36

The End