[KB8597] Install MySQL server for ESET Inspect Server

Issue

Solution

MySQL 8.0 End Of Life

MySQL server version 8.0 reaches its end of life on April 30 2026. Install supported versions of MySQL, version 8.4 or later. To upgrade from version 8.0 to later version, follow the upgrade MySQL server section of this article.

Prerequisites

  • Install Microsoft .NET Framework version 4 if required by the OS

Install and configure the MySQL server

  1. Download the MySQL server installation file for Windows and run the installation file.

  2. On the Choosing a Setup Type screen, select Server-only and click Next.

  3. Continue in the MySQL Installer until you reach the Type and Networking screen. In the Config Type field on the screen, select Dedicated Computer. Under Connectivity, type your preferred port numbers (or use the pre-selected default ports) and click Next.

  4. On the Authentication Method screen, select your preferred authentication method and click Next

  5. On the Accounts and Roles screen, set the MySQL Root Password. Add a MySQL database admin user: click Add User, type a name, select the DB Admin role, set a password for the user and click OK. Click Next.

    Username and password

    Remember the credentials of the MySQL database admin user you created; you will need them during the ESET Inspect Server installation.

  6. On the Windows Service screen, select the check boxes next to Configure MySQL Server as a Windows Service and Start the MySQL Server at System Startup and click Next.

  7. On the Server File Permissions screen, select the option starting with Yes, grant full access and click Next.

  8. On the Apply Configuration screen, click Execute.

  9. Click Finish.

  10. Click Next Finish.


Edit the MySQL configuration file (my.ini)

Editing the MySQL configuration file (my.ini)

Ensure the my.ini file is saved in the ANSI format, not UTF-8. Use a text editor that preserves the file’s encoding format when saving.

MySQL general and binary logs

The MySQL general and binary logs can become very large over time. If they are not required, disable them or limit their size and retention period using MySQL configuration parameters. 

  1. Back up the current MySQL configuration file (my.ini). The file is typically located in C:\ProgramData\MySQL\MySQL Server {version}.

  2. Open the my.ini file. Locate the following parameters and modify their values as specified below. If a parameter is not present, add it at the end of the file.

    Common (MySQL 5 and 8)

    • open_files_limit—set to at least 30000
    • innodb_flush_log_at_trx_commit—set to 0
    • innodb_buffer_pool_size—set to 80% of available RAM (minimum 1 GB); example for a server with 16GB RAM: innodb_buffer_pool_size=12G
    • max_connections=300
    • slow-query-log=0
    • local_infile=1
    • wait_timeout=900
    • disable-log-bin (disables binary logging; use skip-log-bin if preferred)

    MySQL 8

    innodb_redo_log_capacity—set to the value of innodb_buffer_pool_size

    MySQL 5

    • innodb_log_file_size—set to 50% of the value of innodb_buffer_pool_size
    • event_scheduler=ON
  3. Save the changes to the my.ini file and restart the MySQL service. To restart the service, run Command Prompt as Administrator and execute the following commands:

    net stop mysql
    net start mysql
    

    To check whether the MySQL service is running, run:

    sc query mysql

    Replace mysql with your service name—for example, mysql80 (MySQL 8.0) or mysql57 (MySQL 5.7), depending on your installation.


MySQL data storage recommendations

The MySQL database is a crucial component of ESET Inspect Server and can occupy a significant amount of disk space. To ensure operating system stability and maintain performance, we recommend that you move the MySQL data and temporary folders to a dedicated volume (partition) or a separate server.

ESET Inspect On-Prem monitors disk space in the following locations:

  • MySQL data folder—where MySQL stores the ESET Inspect Database (datadir in my.ini)
  • MySQL temporary folder—where MySQL stores temporary tables (tmpdir in my.ini)
  • ESET Inspect Server data folder—typically located at C:\ProgramData\ESET\Inspect Server\Server

If the MySQL database runs on the same machine as ESET Inspect Server, ESET Inspect On-Prem stops accepting new events when:

  • Less than 3% of free space remains on the disk with the MySQL data folder
  • Less than 3% of free space remains on the disk with the MySQL temporary folder
  • Less than 5% of free space remains on the disk with the ESET Inspect Server data folder

If the ESET Inspect Server data folder and the MySQL temporary folder share the same disk, ESET Inspect On-Prem stops accepting new events when free space on the disk drops below 10%.

When the MySQL database is hosted on the same machine as ESET Inspect On-Prem, ensure at least 10% free space on the disk containing the MySQL temporary folder for the purge process to function correctly. Any purge-related issues are indicated by red markers in the Events processed and stored per computer chart on the Events Load tab of the Dashboard in ESET Inspect On-Prem.


Move the MySQL data and temporary folders to a dedicated volume (partition)

  1. Ensure that a dedicated volume (partition) is available on the machine hosting the MySQL server.

  2. Stop the MySQL service. To stop the service, run Command Prompt as Administrator and execute the following command:

    net stop mysql
    

    To check whether the MySQL service is running, run:

    sc query mysql

    Replace mysql with your service name—for example, mysql84 (MySQL 8.4) or mysql57 (MySQL 5.7), depending on your installation.

  3. Move the MySQL data folder to the dedicated volume (partition), for example, to E:\. The data folder is typically located at C:\ProgramData\MySQL\MySQL Server {version}\Data. To verify its location, open the MySQL configuration file (my.ini), typically located in C:\ProgramData\MySQL\MySQL Server {version}, and search for datadir, which specifies the location path.

  4. Open the my.ini file and update datadir to point to the new location of the MySQL data folder, for example, datadir=E:\Data.

    Editing the MySQL configuration file (my.ini)

    Ensure the my.ini file is saved in the ANSI format, not UTF-8. Use a text editor that preserves the file’s encoding format when saving.

  5. Make the MySQL data folder accessible by the Network Service, which is required for the MySQL service to start and function correctly on Windows:

    1. Go to the new location of the MySQL data folder.

    2. Right-click the data folder and select Properties.

    3. In the Data Properties window, click the Security tab.

    4. Click Edit Add.

    5. In the Enter the object names to select field, type Network Service and click Check Names. The name should be underlined, indicating it is recognized. Click OK.

    6. With NETWORK SERVICE selected under Group or user names, select the checkbox under Allow for Full control and click OK → OK.

  6. Move or create the MySQL temporary folder:

    1. If you already have a MySQL temporary folder, move it to a dedicated volume (partition), for example, to E:\. Otherwise, create the folder (for example, E:\MySQLTemp). The temporary folder should not be located inside the MySQL data folder; however, it can be placed on the same volume (partition) or a separate one, if available.

    2. Open the my.ini file and check whether the tmpdir variable is present. If not present, add the variable under [mysqld]. Set tmpdir to point to the new temporary folder, for example tmpdir=E:\MySQLTemp.

  7. Save the changes to the my.ini file and start the MySQL service. To start the service, run Command Prompt as Administrator and execute the following command:

    net start mysql
    

    To check whether the MySQL service is running, run:

    sc query mysql

    Replace mysql with your service name—for example, mysql80 (MySQL 8.0) or mysql57 (MySQL 5.7), depending on your installation.


Upgrade MySQL server

To upgrade the MySQL server for ESET Inspect On-Prem server, follow the steps below:

  1. Before you begin, use the migration guide to back up the ESET Inspect database.

    The database size is too big to perform a backup

    In case the database size is too big, it is possible to perform an in-place database server upgrade with the MySQL installer. After stopping the ESET Inspect service, leave the database service running and ensure you have the database administrator password ready. When the MySQL database server upgrade is complete, continue with the step 4 below.

  2. Uninstall the current MySQL server version from the machine. To uninstall, press Windows key + XInstalled Apps, select the MySQL Server X.X from the list of installed applications and click ...Uninstall. Finish the uninstallation wizard.

  3. Download and install the supported version of MySQL Server.

  4. Edit the MySQL configuration file (my.ini) according to the instructions in this article.

  5. Create the purge tablespace and restore the ESET Inspect database from backup according to the migration guide.