0
0

More than 1 year has passed since last update.

SQLBoilerでエラー:Error: unable to initialize tables: unable to fetch table data

Posted at

はじめに

SQLBoilerでsqlboiler mysqlコマンドをうったときにエラーが出ました。

  • Go: v1.16
  • SQLBoiler: v4.8.3

エラー内容

Error: unable to initialize tables: unable to fetch table data: something totally unexpected happened when running the binary driver /app/go/base/sqlboiler-mysql: fork/exec /app/go/base/sqlboiler-mysql: no such file or directory

解決方法

ドライバーが入ってなかったので、

$ go get github.com/volatiletech/sqlboiler/v4/drivers/sqlboiler-mysql

でドライバーを追加したらOKでした。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0