ARK Server Configuration

Database Setup for ARK API

cover image

Setting up your database correctly is crucial for ARK server plugins that require MySQL/MariaDB connectivity. This guide will help you configure your database for containerized environments.

Automatic Setup (Recommended)

Dashboard Installation
cover image

Our dashboard provides a one-click solution that:

  • Installs and configures MariaDB Server
  • Sets up proper remote access permissions
  • Creates a default database user with these credentials:
    • Username: admin
    • Password: password
  • Configures necessary security settings

Security Warning

The default credentials are for initial setup only. Make sure to change them immediately after installation for security purposes.

Manual Setup

If you're setting up MariaDB manually, follow these steps carefully:

  1. Download and Install MariaDB

    • Official MariaDB Download
      Download from: https://downloads.mariadb.org/rest-api/mariadb/11.3.2/mariadb-11.3.2-winx64.msi
    • Run the installer and follow these steps:
      • Accept the license agreement
      • Choose "Complete" installation type
      • cover image
      • Set a root password when prompted
      • ✓ Check "Use UTF8 as default server's character set"
      • cover image
      • Leave other options at their default settings
      • cover image
      • Click "Install" to complete the setup
  2. Configure Remote Access

    Edit your MariaDB configuration file at C:\Program Files\MariaDB 11.3\data\my.ini and add:

    [mysqld]
    bind-address=0.0.0.0
  3. Create Admin User

    Connect to MariaDB and create the admin user:

    "C:\Program Files\MariaDB 11.3\bin\mysql.exe" -u root -e "CREATE USER 'admin'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES;"
  4. Configure Firewall Rules

    Allow MariaDB connections through Windows Firewall:

    # Remove existing rules
    Get-NetFirewallRule -DisplayName "Allow MySQL from *" -ErrorAction SilentlyContinue | Remove-NetFirewallRule
    
    # Add new rule for local subnets
    New-NetFirewallRule -DisplayName "Allow MySQL from Local Subnet" -Direction Inbound -Action Allow -Protocol TCP -LocalPort 3306 -Profile Any

Testing Your Setup

Test your connection using HeidiSQL or another MySQL client:

  • Host: Your server's IP address
  • Port: 3306
  • User: admin
  • Password: password

If you can connect successfully, your ARK plugins should also be able to connect using these settings.

Security Reminder

After confirming your setup works, immediately change the default admin password and consider restricting the firewall rules to only the necessary IP ranges.