Skip to content

Conversation

@AgenticMonkey
Copy link

… issue on database engine

This commit fixes installer failures on MariaDB by removing hard-coded MySQL 8–only collations.

Key changes:

  • Added automatic detection of MySQL vs MariaDB at install time
  • Dynamically selects a compatible utf8mb4 collation
    • MariaDB / MySQL < 8 → utf8mb4_unicode_ci
    • MySQL 8+ → utf8mb4_0900_ai_ci
  • Replaced hard-coded utf8mb4_0900_ai_ci usages in CREATE TABLE statements
  • Ensured utf8mb4 charset is set on the database connection

This makes the installer portable across:

  • MariaDB 10.x (including CloudLinux)
  • MySQL 5.7
  • MySQL 8+

No schema, data, or runtime logic changes beyond compatibility fixes.

… issue on database engine

This commit fixes installer failures on MariaDB by removing hard-coded
MySQL 8–only collations.

Key changes:
- Added automatic detection of MySQL vs MariaDB at install time
- Dynamically selects a compatible utf8mb4 collation
  - MariaDB / MySQL < 8 → utf8mb4_unicode_ci
  - MySQL 8+ → utf8mb4_0900_ai_ci
- Replaced hard-coded utf8mb4_0900_ai_ci usages in CREATE TABLE statements
- Ensured utf8mb4 charset is set on the database connection

This makes the installer portable across:
- MariaDB 10.x (including CloudLinux)
- MySQL 5.7
- MySQL 8+

No schema, data, or runtime logic changes beyond compatibility fixes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant