golang sql.open()期望0参数得到1

I am trying to connect to a mysql database I have locally, using golang, it builds just fine but running it gives me the following error:

panic: sql: expected 0 arguments, got 1

My connection looks like this:

package main

import (
    "database/sql"
    "fmt"
    _ "github.com/go-sql-driver/mysql"
)

func DBConn() {
    team := "software"
    db, err := sql.Open("mysql", "root:12345678@tcp(localhost:3306)/flexlocal")
    if err != nil {
        fmt.Println("this is where it all went wrong")
        fmt.Printf(err.Error())
        panic(err)
    }
}

According to my research this is how it works however it just isn't working for me.

Please try dbconn function to connect with mysql in go

package main

import (
    "database/sql"
    "fmt"
    _ "github.com/go-sql-driver/mysql"
)
    func dbConn(setDatbaseInstance string) (db *sql.DB) {
        dbDriver := "mysql"
        dbUser := "*****"
        dbPass := "*****"
        dbName := "*****"
        db, err := sql.Open(dbDriver, dbUser+":"+dbPass+"@tcp("+setDatbaseInstance+":3306)/"+dbName)
        if err != nil {
            fmt.Printf("%#v
 DB_ERROR_CONNECTION
", err.Error());
            // return err.Error()
        }else{
             fmt.Println("Connection Established")
        }
        erro:=db.Ping()
        if erro!=nil {
         //do something here
            fmt.Printf("%#v
 DB_PING_ERROR_CONNECTION
", erro.Error());
        }


        return db
    }