mysql-lamp-legacy
Installation
SKILL.md
MySQL / MariaDB (LAMP Legacy)
When to use this skill
- Working on legacy LAMP (Linux, Apache, MySQL, PHP) projects.
- Maintaining WordPress, Drupal, or older custom PHP apps.
- Dealing with specific MySQL quirks (backticks, engine types).
1. Schema Management
- Engine: Ensure
InnoDBis used (not MyISAM). - Encoding: Convert/Ensure
utf8mb4(collationutf8mb4_unicode_ciorutf8mb4_0900_ai_ci). - Dates: Beware of
0000-00-00dates; enable strict mode if possible (NO_ZERO_DATE).
2. Identifiers
- Quoting: Use backticks ` ` for identifiers (tables, columns) if they conflict with keywords.
- Case Sensitivity: Remember table names are case-sensitive on Linux but not Windows/macOS. Lowercase conventions prefered.