无法连接数据库

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'portion DECIMAL(4,1) NOT NULL DEFAULT 1.0, food_name VARCHAR(200...' at line 5 | DB food@1Panel-mariadb-tYY0:3306/food

排查:确认已上传 .env;密码含特殊字符请写成 DB_PASS="你的密码";可临时 APP_DEBUG=true 后打开 /api/dbcheck.php