planetscale / cli

The CLI for PlanetScale Database
https://planetscale.com/cli
Apache License 2.0
604 stars 51 forks source link

`Error: fork/exec /usr/bin/mysql: inappropriate ioctl for device` #856

Closed michaelhays closed 7 months ago

michaelhays commented 7 months ago

Hello, I've been running this command to seed my branch databases for a couple of years now:

PSCALE_ALLOW_NONINTERACTIVE_SHELL=true pscale shell {database} {branch} < ./path/to/my/data.sql

With pscale 0.196.0, I'm getting the following error:

Error: fork/exec /usr/bin/mysql: inappropriate ioctl for device

Version info: pscale version 0.196.0 (build date: 2024-04-22T13:09:35Z commit: 823251d)

dbussink commented 7 months ago

@michaelhays What platform are you on?

dbussink commented 7 months ago

I think that https://github.com/planetscale/cli/pull/857 should fix this issue.

dbussink commented 7 months ago

Released in 0.197.0.

michaelhays commented 7 months ago

Thanks @dbussink! 0.197.0 is working for me both on my local computer (Linux, Fedora 39), and GitHub Actions (Linux).