How to Manage MySQL Databases on Kamatera

MySQL is an open-source Relational Database Management System (RDBMS). It stores, manages, and retrieves data using Structured Query Language (SQL). MySQL stores data in rows and columns in tables. Applications connect to a database server for data operations, and it supports complex queries and transactions.

 

Managing MySQL databases efficiently is crucial for ensuring optimal performance, security, and scalability. In this guide, we will set up a Windows server on Kamatera, and then learn the key aspects of managing MySQL databases on Windows Server, including installation, and configuration.

 

First, create a Kamatera account:

 

Go to console.kamatera.com and sign up for an account by providing the following information:

  1. Verify Your Email: Click the verification link sent to your email by Kamatera.
  2. Password: Enter your password.
  3. Repeat Password: Re-enter your password and click Create Account.

How to Manage MySQL Databases on Kamatera

 

Enter your credentials to access the Kamatera management console and Click Login.

 

How to Manage MySQL Databases on Kamatera

 

Navigate to My Cloud on the left-hand side and select Servers.

On the left-hand side navigation menu, click on Create New Server or use the Create New Server option on the right-hand side.

 

How to Manage MySQL Databases on Kamatera

 

Choose Zone

Choose the zone that works best for you.

 Depending on the zone you select, the available countries will be displayed. 

Use case: For this setup, we used the Asia server domain to set up the Windows Server.

 

How to Manage MySQL Databases on Kamatera

 

Kamatera offers a variety of App and Server Images to help users set up preconfigured resources. Users can explore options such as 

Choose Server OS Images and select Windows Server.

How to Manage MySQL Databases on Kamatera

 

In Choose Version, select the latest version of Microsoft Windows Server (2022_standard 64-bit).

 

How to Manage MySQL Databases on Kamatera

 

Upon selecting the version, the License prices are displayed.

 

How to Manage MySQL Databases on Kamatera

 

Toggle the Detailed view button enable to view the detailed description, including the price.

We’ve chosen the server specifications we need for our use case. You can configure it however you like.

How to Manage MySQL Databases on Kamatera

 

Field Description
Type Type B-General Purpose– Server CPU are assigned to a dedicated physical CPU thread with reserved resources guaranteed.

Type DDedicated – –Server CPU are assigned to a dedicated physical CPU Core (2 threads) with reserved resources guaranteed.    

Type T – Burst – Server CPU are assigned to a dedicated physical CPU thread with reserved resources guaranteed. Exceeding an average usage of 10% will be extra charged for CPUs usage consumption.

Type A-Availability- Server CPUs are assigned to a non-dedicated physical CPU thread with no resources guaranteed.

Note: More information on CPU types is available on the My Cloud- Pricing page.

CPU Choose the number of vCPUs that will be installed on the server. Type B/T can be configured with upto 104 vCPUs per server. Based on Intel’s latest Xeon Processors, 2.7 GHz+.
RAM Choose the amount of RAM that will be installed on the server. Type B/T/D can be configured with upto 512GB RAM per server. 
SSD DISK Choose SSD storage size. You can add up to 15 SSD Disk. SSD Storage includes unlimited IOPS and unlimited storage bandwidth, free of charge.
Daily Backup Toggle the switch to enable extended daily backups of your server’s storage to external backup storage.
Management Services Toggle the switch to enable Management Services to the server’s operating system by Kamatera Technical Support Team. 

 

Choose Networking

 

Users can select the network they wish to use, whether it’s a public Internet network or a private local network.

 

Simple Mode

How to Manage MySQL Databases on Kamatera

 

Field Description
Public Internet Network                  Check to connect the server to a network interface connected to Public Internet Network.           
Private Local Network Check to connect the server to a network interface connected to Private Local Network.

 

Advanced Mode

 

How to Manage MySQL Databases on Kamatera

 

Field Description
NIC #1 Select WAN from the options available in the drop-down menu.                   

  • WAN
  • LAN
  • New LAN

Select auto from the options available in the drop-down menu. 

  • Auto
  • Network

Select auto from the options available in the drop-down menu.

  • Auto 
  • IP
WAN Traffic                          Select 5000 GB per month/ on 10 Gbit per second port. 

 

Advanced configuration 

 Hide to hide the advanced configuration. 

 Show to see the advanced configuration.

 

How to Manage MySQL Databases on Kamatera

 

Field Description
Install Script Enter the script here to execute once the server is created.

Note:For Windows system use Power Shell. 

Keep Server On Failure                           Do not terminate server if Start up Script or Provisioning Fails                     
Server Notes Enter any server notes to be noted.
Tags Select the Tags from the drop-down menu and click Add.

 

 

Finalize Settings

Finalize settings by setting the password, re-validating it, selecting the number of servers, specifying the server name, and enabling the Power On Servers option.

 

Field Description
Password Select password 

Password allowed characters: a-z, A-Z,0-9 !@#$^&*()~ and must need the following requirements:                  

  • At least 14 characters
  • At most 32 characters
  • At least one lowercase character
  • At least one upper case character
  • At least one number
  • Includes allowed characters only
Validate Re-enter the password to validate.
Servers Select the number of servers the user wants.
Name # 1 Enter the name of the server.
Power On Servers                      Switch on the toggle button to see the details 

 

Billing Cycle and Pricing

The user can choose between the Monthly Billing Cycle and Hourly Billing Cycle.

Note: The Server Summary displays the location, operating system (including server specifications), add-on services, servers, and pricing.

Click Create Server.

 

 

Click on Tasks Queue to see the progress of installation of Windows Server.

 

How to Manage MySQL Databases on Kamatera

 

The server will be created and will appear on the Server Management screen. Once the server is created, click Open.

 

How to Manage MySQL Databases on Kamatera

 

A new screen shows up. Overview tab in the center is selected by default and it displays information like Power state, Guest OS, Zone, Public Internet (WAN), Server ID of the server and Configuration-Number of CPU. Memory Size, Disk 1.

 

Click on Connect to connect to Windows Server. 

 

 

Connection credentials like Connection Type, Username, and Password are shown. Now, click on Open Remote Console.

 

 

A new tab opens, connecting to the new server and displaying the Server Manager Dashboard.

 

Install MySQL on Windows Server

Click on https://dev.mysql.com/downloads/installer in your browser, and click on Download next to Windows (x86, 32-bit), MSI Installer (mysql-installer-community-8.0.39.0.msi)- this works for 64-bit also.

How to Manage MySQL Databases on Kamatera

 

A new window will opens. Click on No thanks, just start my download to start downloading MySQL.

 

How to Manage MySQL Databases on Kamatera

 

On the right-hand corner, click on Open file under Downloads.

 

How to Manage MySQL Databases on Kamatera

 

 Or, click on a folder icon and double-click on mysql-installer-community-8.0.39.0 to start the installation.

 

How to Manage MySQL Databases on Kamatera

 

Your MySQL Installer set-up wizard will open.

In the Choosing Setup Type window, select Custom and click Next.

Note: By selecting custom option, we can manually select the products that should be installed on the computer.

 

How to Manage MySQL Databases on Kamatera

 

 

In the Select Products window, under Available products, click on the + icon next to MySQL Servers. Below that, select MySQL Server 8.0.39-x64 and click on the green arrow button.

 

How to Manage MySQL Databases on Kamatera

 

 

Click on the + icon next to Applications, select MySQL Workbench 8.0.38- x64 and then click on the green arrow button.

How to Manage MySQL Databases on Kamatera

 

 

Click on the + icon next to MySQL Shell select MySQL Shell 8.0.38- x64 and then click on the green arrow button.

 

After adding the selected products click on Next.

 

How to Manage MySQL Databases on Kamatera

 

 

Click on the + icon next to MySQL Shell select MySQL Shell 8.0.38- x64 and then click on the green arrow button. After adding the selected products, click on Next.

 

How to Manage MySQL Databases on Kamatera

 

Once the installation is complete, you can see the screen below. Click on Next.

 

How to Manage MySQL Databases on Kamatera

 

In the Product Configuration window, click on Next.

How to Manage MySQL Databases on Kamatera

 

In the Type and Networking window, you can see Server Configuration Type, Connectivity, and Advanced Configuration.

Click on Next.

How to Manage MySQL Databases on Kamatera

 

In the Authentication Method window, select Use Strong Password Encryption for Authentication (Recommended)

Click on Next.

 

How to Manage MySQL Databases on Kamatera

 

In the Accounts and Roles window, enter a strong password in MySQL Root Password and Repeat Password.

Click on Next.

 

How to Manage MySQL Databases on Kamatera

 

In Windows Service windows,

 

Click on Next.

 

How to Manage MySQL Databases on Kamatera

 

In the Server File Permissions window, select Yes, grant full access to the user running the Windows service (if applicable) and administrators group only. Other users and groups will not have access.

Click Next.

 

How to Manage MySQL Databases on Kamatera

 

In the Apply Configuration windows, click Execute.

 

How to Manage MySQL Databases on Kamatera

 

Once the configuration is successful, click on Finish.

 

How to Manage MySQL Databases on Kamatera

 

In the Product Configuration window, click Next.

 

How to Manage MySQL Databases on Kamatera

 

In the Installation Complete window, 

 

Click Finish.

 

How to Manage MySQL Databases on Kamatera

 

Once we click on Finish, it will navigate to the command prompt, showing the installation of MySQL Shell 8.0.38.

 

How to Manage MySQL Databases on Kamatera

 

After a few seconds, it will navigate to MySQL Workbench. Here, click on Local instance MySQL8.0

 

How to Manage MySQL Databases on Kamatera

 

Here, enter the Password that you already mentioned in step 10 (Accounts and Roles window) and check the box next to Save password in vault.

 

How to Manage MySQL Databases on Kamatera

 

 

Now you are in MySQL Workbench.

 

How to Manage MySQL Databases on Kamatera

 

Here, you create a new schema by clicking on the Create new schema icon. Enter the name and click on Apply.

Note: Here, the name of the schema is employee.

 

How to Manage MySQL Databases on Kamatera

 

A new window opens showing the schema that is created and click on Apply.

How to Manage MySQL Databases on Kamatera

 

Click on Finish.

 

How to Manage MySQL Databases on Kamatera

 

Now, in the workbench, create tables in the schema. 

Click on Schemas in the bottom left corner of the window. It will show you the schemas that are created.

sys is the default schema.

Click on the drop-down menu next to yourschema_name (ex: employee), you can see Tables, views, Stored Procedures, and Functions. You can select any of them according to your requirements and fill in the information.

Note: You can also create tables using the table icon in the menu bar.

Enter the column name and set the data type by checking the boxes Primary key, Unique, etc and click Apply.

A new window “Apply SQL Script to database” opens. Here in “Review the script to be applied to the database”, click Apply. Then in “Applying SQL Script to database”,  click Finish

 Now, a table ‘employee’ with one column is set.

How to Manage MySQL Databases on Kamatera

 

We must add the path of the MySQL in Environment Variables. To do so, 

 

How to Manage MySQL Databases on Kamatera

 

In the System Properties window, click on Environment Variables.

 

How to Manage MySQL Databases on Kamatera

 

How to Manage MySQL Databases on Kamatera

 

Click on New, add the new path, and click on OK.

 

How to Manage MySQL Databases on Kamatera

 

 

Open the command prompt by typing cmd in the Windows search bar.

Here, verify the installation of MySQL by running the below command.

Command: mysql –version

If it is successfully installed, you can see the message “mysql Ver 8.0.39 for Win64 on x86_64 (MySQL Community Server – GPL)”

 

How to Manage MySQL Databases on Kamatera

 

By running the below command, you can log in to MySQL Server.

Command: mysql -u root -p

After running this command, you will be prompted to enter a password (which is given in step 10-> Accounts and Roles window).

You can also see your MySQL connection id (here it is 15).

 

How to Manage MySQL Databases on Kamatera

 

You can see if there are any databases by default by running the below command.

Command: show databases;

Note: You can see there are no databases at present.

 

How to Manage MySQL Databases on Kamatera

 

You can create a database by running the command below.

Command: create database d;

           create database d1;

Command: show databases;

Now, you can see d, and d1 databases are added.

 

How to Manage MySQL Databases on Kamatera

 

Managing MySQL databases effectively on Kamatera requires a combination of proper setup, regular maintenance, and security enhancements. By following best practices in database management, you can ensure high availability, data integrity, and optimal performance for your applications.

Have additional questions? Search below: