Installing CUBRID Database and CUBRID Manager on Windows

48
Trainings Channel Installing CUBRID and CUBRID Manager on Windows OS http://www.cubrid.org/tutorials

description

This presentation explains how to quickly install CUBRID on Windows systems. It also explains how to manage the CUBRID service, how to install CUBRID Manager and how to perform the basic administration tasks.

Transcript of Installing CUBRID Database and CUBRID Manager on Windows

Page 1: Installing CUBRID Database and CUBRID Manager on Windows

Trainings Channel

Installing CUBRID and CUBRID

Manageron Windows OS

http://www.cubrid.org/tutorials

Page 2: Installing CUBRID Database and CUBRID Manager on Windows

Download CUBRID for Windows

1. Visit– http://www.cubrid.org/

windows_downloads

2. Download the latest Installation package– CUBRID-Windows-x86-<version>.exe or– CUBRID-Windows-x64-<version>.exe

3. Double click on the file and run the installer.

2

Page 3: Installing CUBRID Database and CUBRID Manager on Windows

3

Preparing Setup

Please Wait.CUBRID Setup is preparing the Wizard, which will guide you through the installation process.

Page 4: Installing CUBRID Database and CUBRID Manager on Windows

4

General Information

Click “Next”.If you have data from the previous version of CUBRID, the data migration process is required.Refer to CUBRID Tutorials at http://www.cubrid.org/tutorials

Page 5: Installing CUBRID Database and CUBRID Manager on Windows

5

Destination Directory

Click “Next”.It is recommended to leave the default installation location as “C:\CUBRID”.In case of a different location, the path should not contain a space.

Page 6: Installing CUBRID Database and CUBRID Manager on Windows

6

License Agreement

1. Select “I accept”

2. Click “Next”.If you agree to the license terms, continue the installation process by clicking the “Next” button.

Page 7: Installing CUBRID Database and CUBRID Manager on Windows

7

Setup Type

1. Select “Complete”

2. Click “Next”.It is recommended to select the Complete installation, which will install the CUBRID Database Server together with its APIs (OLE DB, ODBC, JDBC, and C).Install Interface Drivers will install only the CUBRID APIs without the CUBRID Database Server.

Page 8: Installing CUBRID Database and CUBRID Manager on Windows

8

Compatibility Information

Click “Yes”.This message box is to let the user know that to connect to CUBRID 8.4.1 Database Server, they must use client applications/APIs compatible with 8.4.1.

The same rule applies for CUBRID 8.4.0 versions.

Page 9: Installing CUBRID Database and CUBRID Manager on Windows

9

Additional Options

Click “Next”.Select the necessary options based on your preferences.

Page 10: Installing CUBRID Database and CUBRID Manager on Windows

10

Installation Summary

Click “Next”.The installation summary is displayed in this step.

Page 11: Installing CUBRID Database and CUBRID Manager on Windows

11

Setup Status…

Please Wait.The setup wizard is installing CUBRID.

Page 12: Installing CUBRID Database and CUBRID Manager on Windows

12

Demo Database

Click “Yes”.It is recommended to install the sample demodb database, which can be later used to get acquainted with CUBRID.

Page 13: Installing CUBRID Database and CUBRID Manager on Windows

13

Installation Completed!

Click “Finish”.The installation has been completed. Click “Finish” to close the window. This will also start the CUBRID Service.

Page 14: Installing CUBRID Database and CUBRID Manager on Windows

Getting Started Guide

In the next slides, we will show you how to:

1. Manage the CUBRID Service2. Install CUBRID Manager3. Connect to the CUBRID Server4. Create a database5. Start a database6. Run a SQL query

14

Page 15: Installing CUBRID Database and CUBRID Manager on Windows

Manage the CUBRID Service

1. Open the Start Menu screen2. Type “cmd” in the search box3. Click on “cmd.exe” program

This will open a command lineconsole from where you can executecubrid commands.

15

Page 16: Installing CUBRID Database and CUBRID Manager on Windows

Starting CUBRID Service

The CUBRID Service starts on boot by default.The CUBRID Service supports the following commands:

1. Start service2. Stop service3. Restart service4. View status

16

cubrid service start

cubrid service stop

cubrid service restart

cubrid service status

Page 17: Installing CUBRID Database and CUBRID Manager on Windows

Manage the CUBRID Service

You can also start/stop CUBRID service from the CUBRID service tray. If the tray is not running, you can start it from the Start Menu.

You will see the CUBRID logo in the right lower part of the screen. Right click on it and choose “Service Stop” or “Service Start” according to the current status of the CUBRID service.

17

Page 18: Installing CUBRID Database and CUBRID Manager on Windows

Install Java 1.6 or Above

Before you install CUBRID Manager, you must install Java JDK or JRE

version 1.6 or above. You can download java from:http://www.oracle.com/technetwork/java/javase/downloads/

index.html

After you install the JDK or JRE, you must set the JAVA_HOMEenvironment variable. A tutorial on how to do this is found here:http://www.cubrid.org/manual/841/en/Setting%20up%20the%20JDBC

%20Environment

18

Page 19: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager for Windows

1. Visit– http://www.cubrid.org/cm_windows_downloads

2. Download the latest Installation package– CUBRIDManager-<version>-windows-

i386.exe or– CUBRIDManager-<version>-windows-

x86_64.exe

3. Double click on the file and run the installer.

19

Page 20: Installing CUBRID Database and CUBRID Manager on Windows

20

General Information

Click “Next”.

Page 21: Installing CUBRID Database and CUBRID Manager on Windows

21

License Agreement

1. Select “I agree”

If you agree to the license terms, continue the installation process by clicking the “I Agree” button.

Page 22: Installing CUBRID Database and CUBRID Manager on Windows

22

Additional Components

Click “Next”.Select the necessary options based on your preferences.

Page 23: Installing CUBRID Database and CUBRID Manager on Windows

23

Destination Directory

Click “Next”.It is recommended to leave the default installation location as “C:\CUBRID\cubridmanager”.In case of a different location, the path should not contain a space.

Page 24: Installing CUBRID Database and CUBRID Manager on Windows

24

Setup Status…

Please Wait.The setup wizard is installing CUBRID. You will only have to click Next after the installation was completed.

Page 25: Installing CUBRID Database and CUBRID Manager on Windows

25

Installation Completed!

Click “Finish”.The installation has been completed. Click “Finish” to close the window.

Page 26: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Choose Workspace

When you open CUBRID Manager, you will be asked what workspace to choose. This is the location where CUBRID Manager will hold its runtime files.

It is recommended to leave the default and click ok. Check the option given if you don’t want to be asked this question every time.

26

Page 27: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Add Host

In the File menu tab, choose“Add Host” option.

27

Page 28: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Add Host

Enter values for host name,Address, port, user name andpassword. The default user andpassword are “admin”.

You will be asked to change the default password after connecting to the host.

You can also enter a remote IPAddress in the address field.

Click “Add” to add the new host.

28

Page 29: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Connect Host

Right click on the hostname in the left tab andselect the option“Connect Host”.

29

Page 30: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Connect Host

Edit configurationdata if needed andclick on “Connect”.

30

Page 31: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Change Password

After the first connection,you will be asked to set anew password for theadmin user.

31

Page 32: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager - Reconnect

You will have to reconnect after changing the password. Select “Yes” if you want this done automatically.

32

Page 33: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Connect to Database

Right click on thedatabase name andchoose “Login Database”.

33

Page 34: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Connect to Database

Enter the database password and click “OK”.

The demodb database has no password, so leave the password field blank.

34

Page 35: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Start Database

Right click on thedatabase name andchoose “Start Database”.

35

Page 36: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Query Editor

After the database hasbeen started, right clickon the database nameand choose “New Query Editor”.

36

Page 37: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Query Editor

Type the query and see the results obtained.

Example query:SELECT * from athlete limit 0,5;

37

Page 38: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Create Database

If you wish to create another database, right click on “Databases” andChoose “Create Database”.

The default user name forthe database is the currentuser (usually dba).

38

Page 39: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Create Database

Enter database name and click thenext button. Optionally, you canmodify the database default sizefor volumes and log entries.

Important! The database name must not contain spaces.

39

Page 40: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Create Database

Click “Next”.Optionally, you can edit the size orlocation for additional volumes.

40

Page 41: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Create Database

Click “Next”.Optionally, you can edit the valuesfor automatic volume extension.

41

Page 42: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Create Database

Set the password forthe database and click“Next”.

42

Page 43: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Create Database

View the details of thedatabase that will becreated and click “Finish”.

43

Page 44: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Create Database

Click “OK” when asked tocreate the directories needed to hold the database volumes and data.

44

Page 45: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Create Database

Wait for databaseto be created.

45

Page 46: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Create Database

The database has been created and you can now connect to it and perform queries on it.

46

Page 47: Installing CUBRID Database and CUBRID Manager on Windows

CUBRID Manager – Login Database

Right click on the database created and Choose “Login Database”. Repeatthe procedure for “demodb” if you want to execute a query.

47

Page 48: Installing CUBRID Database and CUBRID Manager on Windows

48

Need Help?

Visit http://cubrid.org/forumCUBRID Official Forum has a dedicated thread for CUBRID Installation where you can ask any questions.

Visit http://www.cubrid.org/tutorials

Various tutorials to help and improve your database knowledge and skills.

Visit http://www.cubrid.org/questions

CUBRID Q&A site - Ask any question and receive an answer within 24h.