### Bug description - OceanBase is a MySQL compatible database and doesn't support `@@socket` variable. https://github.com/oceanbase/oceanbase/issues/1936 - When connect OceanBase with prisma, `prefer_socket` is configured and doesn't work with following error: ``` Error: Schema engine error: Unknown system variable 'socket' ```  Related prisma issue: - https://github.com/prisma/prisma/issues/18508 - https://github.com/prisma/prisma/issues/6207 ### How to reproduce - Clone reproducible repo: https://github.com/dengfuping/prisma-oceanbase-test - isntall node and npm: https://nodejs.org/en - run script `npm install` - Configure oceanbase connect string in `.env.local` file - run script `npx prisma migrate dev --name init` ### Expected behavior `prefer_socket` works and connect OceanBase with prisma should be success. ### Prisma information <!-- Do not include your database credentials when sharing your Prisma schema! --> ```prisma generator client { provider = "prisma-client-js" } datasource db { provider = "mysql" url = env("DATABASE_URL") } model User { id Int @id @default(autoincrement()) email String @unique name String? } ``` ```ts // Add your code using Prisma Client ``` ### Environment & setup - OS: <!--[e.g. macOS, Windows, Debian, CentOS, ...]--> macOS - Database: <!--[PostgreSQL, MySQL, PlanetScale, MariaDB, SQL Server, SQLite, MongoDB or CockroachDB]--> MySQL - Node.js version: <!--[Run `node -v` to see your Node.js version]--> v21.6.2 ### Prisma Version ``` 5.12.1 ```
Bug description
@@socketvariable. [Bug]: Connect OceanBase with prisma failed: Unknown system variable 'socket' oceanbase/oceanbase#1936prefer_socketis configured and doesn't work with following error:Related prisma issue:
SELECT @@socketshould be ignored when connecting to a remote database #6207How to reproduce
npm install.env.localfilenpx prisma migrate dev --name initExpected behavior
prefer_socketworks and connect OceanBase with prisma should be success.Prisma information
// Add your code using Prisma ClientEnvironment & setup
Prisma Version