DB Parameters in Ubuntu
This document provides the steps to install MySQL, create the ovaledgedb database, and configure MySQL database parameters in an Ubuntu environment for OvalEdge applications. It includes MySQL repository configuration, server installation, database initialization, and parameter updates required for stable database connectivity and optimized performance. Follow the steps in the order provided to complete the setup successfully.
Prerequisites
Ensure the following prerequisites are met before starting the installation:
Ubuntu 22.04 LTS or later
Sudo privileges on the target VM
Stable internet connectivity on the target VM
Minimum 4 GB RAM available on the server
Outbound access to https://dev.mysql.com
MasterScripts SQL file provided by the OvalEdge team
Update System Packages
Open Terminal
Log in to the Ubuntu VM
Update Package Repository Information
Run the following command to refresh the package repository metadata:
sudo apt update -ySample Reference screenshot:

Download MySQL APT Configuration Package
Download the MySQL Package
Run the following command to download the MySQL APT configuration package: https://dev.mysql.com/get/mysql-apt-config_0.8.34-1_all.deb
Sample Reference Screenshot:

Configure MySQL APT Repository
Install the MySQL Repository Package
Run the following command:
Select MySQL Version
During installation:
Select MySQL 8.4
Select OK and press Enter
Use the arrow keys and Enter key to navigate the package configuration screen.
Sample Reference Screenshot:


Select MySQL and click OK, as shown in the above screenshot.
Update Repository Information
Refresh Repository Metadata
Run the following command to update the repository information:
Sample Reference Screenshot:

Install MySQL Server
Install MySQL
Run the following command:
Sample Reference Screenshot:



Configure Root Password
During installation:
Enter the MySQL root password
Confirm the password
Configure the password in accordance with the organizational security policies.
Verify MySQL Installation
Verify MySQL Version
Run the following command:
Sample Reference Screenshot:

Exit MySQL Shell
If the MySQL shell opens, run the following command to exit:
Configure MySQL Parameters
Open MySQL Configuration File
Run the following command:
Update MySQL Parameters
Add or update the following parameters under the [mysqld] section:
Sample Reference Screenshot:

Parameter Description
max_binlog_size
Defines the maximum binary log file size
binlog_expire_logs_seconds
Defines binary log retention duration
group_concat_max_len
Increases maximum GROUP_CONCAT() result length
max_connections
Defines maximum concurrent database connections
max_allowed_packet
Defines the maximum packet size allowed by MySQL
bind-address
Enables remote MySQL access
innodb_buffer_pool_size
Allocates memory for InnoDB caching and performance
Save the configuration file and exit the editor.
Set bind-address=0.0.0.0 only when remote database access is required
Configure innodb_buffer_pool_size based on available server memory
Recommended buffer pool allocation is 50%–70% of total RAM
Restart and Enable MySQL Service
Restart MySQL Service
Run the following command:
Enable MySQL Service
Run the following command:
Sample Reference Screenshot:

Initialize OvalEdge Database
Transfer MasterScripts File
Transfer the MasterScripts SQL file provided by the OvalEdge team to the MySQL VM. Example:
Sample Reference Screenshot:

Log in to MySQL
Run the following command:
Sample Reference Screenshot:

Execute MasterScripts File
Run the following command inside the MySQL shell:
Exit MySQL Shell
Run the following command:
Verify Database Creation
Log in to MySQL
Run the following command:
Verify Databases
Run the following command:
Sample Reference Screenshot:

The presence of the ovaledgedb database confirms successful database initialization.
Update Additional MySQL Parameters
Open MySQL Configuration File
Run one of the following commands based on the server configuration:
or
Update Additional Parameters
Add or update the following parameters under the [mysqld] section:
Sample Reference Screenshot:

Save the configuration file and exit the editor.
Apply Configuration Changes
Restart MySQL Service
Run the following command:
Sample Reference Screenshot:

Verify MySQL Service Status
Run the following command
Sample Reference Screenshot:

Copyright © 2026, OvalEdge LLC, Peachtree Corners, GA, USA.
Last updated
Was this helpful?

