Installation of MySQL 5.0 (InnoDB Engine) and Q...
Transcript of Installation of MySQL 5.0 (InnoDB Engine) and Q...
Installation of MySQL 5.0 (InnoDB Engine)
and Q-Monitor 3.x.x
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
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
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
TRANSCAT – March 08 Page 5
Installation of MySQL 5.0
Select setup type: Typical
Click Next
TRANSCAT – March 08 Page 6
Installation of MySQL 5.0
Click Install
Click Next
TRANSCAT – March 08 Page 7
Installation of MySQL 5.0
Make sure that the option:Configure the MySQL Server nowis set.
Click Finish
TRANSCAT – March 08 Page 8
Installation of MySQL 5.0
Click Next
TRANSCAT – March 08 Page 9
Installation of MySQL 5.0
Set the radio button to the option:Standard Configuration
Click Next
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
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
TRANSCAT – March 08 Page 12
Installation of MySQL 5.0
Click Execute Click Finish
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)
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
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)
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!
TRANSCAT – March 08 Page 17
Installation of Q-Monitor
Start Q-Monitor by double click onqmonitor.bat
Click on:Database Creation
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
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
TRANSCAT – March 08 Page 20
Installation of Q-Monitor
Open the Windows console:Start / Run
Write:cmd
in the text box and press OK
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
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
TRANSCAT – March 08 Page 23
Installation of Q-Monitor
Type:source C:\tmp\createDB.sql
into the console and press Enter
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
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
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
TRANSCAT – March 08 Page 27
Installation of Q-Monitor
Click on:Update Criteria Table
TRANSCAT – March 08 Page 28
Installation of Q-Monitor
Select from theQ-Checkerinstallation directory.../adminV5/DEFAULT/db
the file CRITERIA.par
TRANSCAT – March 08 Page 29
Installation of Q-Monitor
The Criteria Tableis updated sucessfully.
TRANSCAT – March 08 Page 30
Installation of Q-Monitor
Make a new query(File – New)Choose first queryClick OK
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.
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
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!
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.
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.
TRANSCAT – March 08 Page 36
The End