# Staging Sync Checklist (MySQL) This is the exact, minimal checklist to sync **live SQL → staging MySQL**. ## 1) Point app to MySQL Edit `.env` (or set in Coolify ENV): ``` DB_CONNECTION=mysql DB_HOST=YOUR_MYSQL_HOST DB_PORT=3306 DB_DATABASE=YOUR_DB DB_USERNAME=YOUR_USER DB_PASSWORD=YOUR_PASS ``` ## 2) Run migrations + import (inside Coolify app container) ```bash cd /var/www/html php artisan migrate php artisan dewemoji:import-live-sql /var/www/html/dewemojiAPI_DB.sql --truncate ``` If your SQL file is elsewhere, locate it first: ```bash find / -name "dewemojiAPI_DB.sql" 2>/dev/null ``` ## 3) Quick sanity checks ```bash php artisan tinker --execute="echo DB::table('emojis')->count().PHP_EOL;" php artisan tinker --execute="echo DB::table('emoji_keywords')->count().PHP_EOL;" ``` Expected: `emojis` ~ 2131, `emoji_keywords` ~ 13420. ## Notes - Live `users` + `sessions` are imported into `legacy_users` + `legacy_sessions`. - Licenses/activations/usage logs are imported into current tables for parity.