Installing IBM DB2
You need to install IBM DB2 Community Edition before you connect to the database.
To Download IBM DB2 Community Edition​
- Go to the Db2 Download page and sign in with your IBM credentials. 
- Download the IBM® Db2 11.5 Edition for your Operating System. 
- Log on to your system using a local administrator account. 
- Locate the - v11.5_ntx64_dec.zipfile that you downloaded and extract it to your desired location.
- In the extracted folder, right-click on the setup.exe file and select Run as administrator. 
- Click Install a Product 
- Scroll down to the end of the - Db2 Version 11.5.0.0 Server Editionssection and click Install New, then click Next to begin the installation process.
- Review and accept the software license agreement and click Next. 
- Select the Typical Installation option and then click Next. 
- Select Install Db2 Server Edition on this computer and save my settings in a response file and click Next. 
- Set your installation path and click Next. 
- Set your DB2 copy name and click Next. 
- Select Local user or Domain user account and enter your user credentials. 
- Select DB2 as the default instance and click Next. 
- Uncheck the Set up your DB2 server to send notifications checkbox and click Next. 
- Select the Enable operating system security checkbox and click Next. 
- Click Finish to finalize your installation. note- For detailed instructions, refer to the links below: - Installing the Db2 server by using the Db2 Setup wizard (Windows) - Installing the Db2 server by using the Db2 Setup wizard (Linux and UNIX) - Downloading and Installing Docker Editions - The links above are for the IBM DB2 Database version 11.5. You can change the instruction version by using the drop-down list located on the top left side 
After you have successfully installed IBM DB2, you will need to create a database.
Creating a database in Windows​
- Open Command Prompt with Administrator privileges. 
- Type - db2cmd(This will open the DB2 Command Line Tool)
- Type - db2(This will open the Command Line Processor for DB2 Client)
- To create a database: - CREATE DATABASE database_name