prisma: `prefer_socket` doesn't work when connect OceanBase with prisma

Bug description

Error: Schema engine error:
Unknown system variable 'socket'

image

Related prisma issue:

How to reproduce

Expected behavior

prefer_socket works and connect OceanBase with prisma should be success.

Prisma information

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?
}
// Add your code using Prisma Client

Environment & setup

  • OS: macOS
  • Database: MySQL
  • Node.js version: v21.6.2

Prisma Version

5.12.1

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 21 (5 by maintainers)

Commits related to this issue

Most upvoted comments

prefer_socket=false not working might be a problem in our underlying MySQL driver: blackbeam/mysql_async#253 + https://github.com/blackbeam/mysql_async/releases/tag/v0.33.0

When it will be updated to version 0.33.0? I notice that Prisma maintains a version of mysql_async.

prefer_socket=false not working might be a problem in our underlying MySQL driver: https://github.com/blackbeam/mysql_async/issues/253 + https://github.com/blackbeam/mysql_async/releases/tag/v0.33.0