$ go run tableSize.go
github.com/go-sql-driver/mysql
/root/go/pkg/mod/github.com/go-sql-driver/mysql@v1.8.0/connector.go:45:18: undefined: strings.Cut
/root/go/pkg/mod/github.com/go-sql-driver/mysql@v1.8.0/dsn.go:441:24: undefined: strings.Cut
/root/go/pkg/mod/github.com/go-sql-driver/mysql@v1.8.0/dsn.go:529:18: cannot assign string to value in multiple assignment
/root/go/pkg/mod/github.com/go-sql-driver/mysql@v1.8.0/dsn.go:639:28: cannot assign string to cfg.Params[key] in multiple assignment
note: module requires Go 1.18
go get github.com/go-sql-driver/mysql@v1.7
go get: downgraded github.com/go-sql-driver/mysql v1.8.0 => v1.7.1
重新运行go脚本