bee must have one register DataBase alias named `default`

bee must have one register DataBase alias named default

在你初始化db,注册默认数据库时,看看你是否import初始化注册数据库驱动driver

import (
    _ "github.com/go-sql-driver/mysql"
    _ "github.com/lib/pq"
    _ "github. com/mattn/go-sqlite3"
)
原文地址:https://www.cnblogs.com/niuben/p/14131485.html