Skip to content

Panel v1.12.x Docker image fails during schema load – mysql: not found #5595

@Carlito53

Description

@Carlito53

Current Behavior

When deploying the panel using the official Docker image:

ghcr.io/pterodactyl/panel:latest

or

ghcr.io/pterodactyl/panel:v1.12.1

The container connects successfully to MariaDB, but fails during schema loading with:

database/schema/mysql-schema.sql ... FAIL
sh: mysql: not found
Exit Code: 127 (Command not found)

This results in a 500 Server Error and prevents the panel from starting properly.

Expected Behavior

Panel should initialize the database successfully without requiring the mysql CLI binary inside the container.

Steps to Reproduce

Deploy panel with Docker (v1.12.x or latest)

Use standard MariaDB (10.11 / 11.x)

Start stack

Check logs → failure during schema import

Panel Version

1.12.1

Wings Version

1.12.0

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs

ln: /var/log/panel/logs: File exists
external vars exist.
Checking if https is required.
Checking if letsencrypt email is set.
No letsencrypt email is set using http config.
Removing the default nginx config
Checking database status.
Waiting for database connection...
Waiting for database connection...
Waiting for database connection...
Waiting for database connection...
Waiting for database connection...
Waiting for database connection...
Waiting for database connection...
Waiting for database connection...
ptero-mariadb (172.21.0.11:3306) open
Migrating and Seeding D.B

   INFO  Preparing database.

  Creating migration table ...................................... 23.64ms DONE

   INFO  Loading stored database schemas.

  database/schema/mysql-schema.sql .............................. 21.77ms FAIL

In Process.php line 280:

  The command "mysql  --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_L
  OAD_PASSWORD}" --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}
  " --database="${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"" failed.

  Exit Code: 127(Command not found)

  Working directory: /app

  Output:
  ================


  Error Output:
  ================
  sh: mysql: not found


Starting cron jobs.
Starting supervisord.
2026-02-27 15:57:20,965 CRIT Server 'unix_http_server' running without any HTTP authentication checking

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue. I understand that maintainers may close this issue without communication if I have not provided sufficient information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions