diff --git a/gateway.go b/gateway.go index 76958bc..82b657e 100644 --- a/gateway.go +++ b/gateway.go @@ -45,7 +45,7 @@ func main() { } func dbConnect() { - sqlConf, err := ioutil.ReadFile(".mysql_goconf") // Read the db config file + sqlConf, err := ioutil.ReadFile("/root/.mysql_goconf") // Read the db config file if err != nil { fmt.Printf("Error reading MySQL config file: %v\n", err) os.Exit(1) // If we can't connect to the database there's not much point in continuing