Title: Erro na evolutionAPI com mysql · Issue #2344 · EvolutionAPI/evolution-api · GitHub
Open Graph Title: Erro na evolutionAPI com mysql · Issue #2344 · EvolutionAPI/evolution-api
X Title: Erro na evolutionAPI com mysql · Issue #2344 · EvolutionAPI/evolution-api
Description: Issue: Evolution API v2.3.6 MySQL Syntax Errors Hello everyone, I’m looking for some technical support. I attempted to install Evolution API v2.3.6 using MySQL 8.0, but I am encountering SQL syntax errors that appear to be internal confl...
Open Graph Description: Issue: Evolution API v2.3.6 MySQL Syntax Errors Hello everyone, I’m looking for some technical support. I attempted to install Evolution API v2.3.6 using MySQL 8.0, but I am encountering SQL syntax...
X Description: Issue: Evolution API v2.3.6 MySQL Syntax Errors Hello everyone, I’m looking for some technical support. I attempted to install Evolution API v2.3.6 using MySQL 8.0, but I am encountering SQL syntax...
Opengraph URL: https://github.com/EvolutionAPI/evolution-api/issues/2344
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Erro na evolutionAPI com mysql","articleBody":"# Issue: Evolution API v2.3.6 MySQL Syntax Errors\n\nHello everyone, I’m looking for some technical support. I attempted to install **Evolution API v2.3.6** using **MySQL 8.0**, but I am encountering SQL syntax errors that appear to be internal conflicts between the API and the database engine.\n\n---\n\n### 🛠️ Environment \u0026 Steps Taken\nI set up the environment via **Docker Compose** using the official Evolution image, Redis, and MySQL (Percona 8.0). I configured the `.env` file following the official documentation, setting:\n\n* `DATABASE_PROVIDER=mysql`\n* `DATABASE_CONNECTION_URI` (pointing correctly to the MySQL container).\n\n---\n\n### ❌ The Bug\nWhile the API initializes, it crashes during basic operations (saving messages or querying the database) with two primary errors:\n\n#### 1. Syntax Error (PostgreSQL Query on MySQL)\n\u003e **Raw query failed. Code: 1064.** \u003e *Message:* `You have an error in your SQL syntax; check the manual... near '\"Message\" WHERE \"instanceId\" = ? AND \"key\"-\u003e\u003e'id' = '`\n\n* **Observation:** The error shows the API is attempting to use double quotes (`\"Message\"`) and the JSON operator (`-\u003e\u003e`), which are specific to **PostgreSQL**, despite the provider being explicitly set to MySQL.\n\n#### 2. Schema Error (Missing `lid` field)\n\u003e **Invalid `this.cache.delete()` invocation...** \u003e `Unknown argument lid. Did you mean id?`\n\n* **Observation:** It seems Prisma did not create the `lid` column in MySQL, or the caching logic is attempting to access a field that does not exist in the schema generated for this specific database type.\n\n---\n\n### 🔍 Debugging Procedures Already Performed\n* Wiped all Docker volumes and rebuilt from scratch.\n* Attempted to force variables: `DATABASE_TYPE=mysql` and `DATABASE_CONNECTION_CLIENT_NAME=mysql`.\n* Verified that the database is \"ready for connections\" before the API service starts.\n\n---\n\n### ❓ Questions\n1. Has anyone successfully run **v2.3.6 stable** with MySQL?\n2. Is there a specific configuration to prevent Prisma from injecting Postgres-specific syntax into raw queries when the provider is MySQL?","author":{"url":"https://github.com/diogoosz","@type":"Person","name":"diogoosz"},"datePublished":"2025-12-31T21:27:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2344/evolution-api/issues/2344"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f44360fa-778f-82c9-2acb-79ad0b37b65e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A380:CD10D:BE7C1A:F626EC:696AFDBD |
| html-safe-nonce | d81f63792cf483f0b7f3034780a2783c4a6f273eb8abfe4bfbb751e0c5b7573b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzgwOkNEMTBEOkJFN0MxQTpGNjI2RUM6Njk2QUZEQkQiLCJ2aXNpdG9yX2lkIjoiNTUxODA3NzA1OTE0MjQ1MDYyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 28c03b0fb926607c5652a1f4d1d956607c6963585cbbfc88fabdde4c8712fce7 |
| hovercard-subject-tag | issue:3773749955 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/EvolutionAPI/evolution-api/2344/issue_layout |
| twitter:image | https://opengraph.githubassets.com/80e6e29acbc704c975e61f5df839cbecd917bd3056756ff07b4619c51ad6833a/EvolutionAPI/evolution-api/issues/2344 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/80e6e29acbc704c975e61f5df839cbecd917bd3056756ff07b4619c51ad6833a/EvolutionAPI/evolution-api/issues/2344 |
| og:image:alt | Issue: Evolution API v2.3.6 MySQL Syntax Errors Hello everyone, I’m looking for some technical support. I attempted to install Evolution API v2.3.6 using MySQL 8.0, but I am encountering SQL syntax... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | diogoosz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/EvolutionAPI/evolution-api git https://github.com/EvolutionAPI/evolution-api.git |
| octolytics-dimension-user_id | 136080052 |
| octolytics-dimension-user_login | EvolutionAPI |
| octolytics-dimension-repository_id | 651487266 |
| octolytics-dimension-repository_nwo | EvolutionAPI/evolution-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 651487266 |
| octolytics-dimension-repository_network_root_nwo | EvolutionAPI/evolution-api |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width