// SetupMySQLDatabase establishes the connexion with the MySQL database
SetupMySQLDatabase establishes the connexion with the MySQL database
// SetupMySQLDatabase establishes the connexion with the MySQL database
func (a *API) SetupMySQLDatabase() (*sql.DB, error) {
	db, err := sql.Open("mysql", a.Config.GetString("mysql_db_user")+":"+a.Config.GetString("mysql_db_password")+
		"@/"+a.Config.GetString("mysql_db_name"))
	utils.CheckErr(err)
	a.MySQLDatabase = db
	return db, nil
}
func ( a * API ) SetupMySQLDatabase ( ) ( * sql . DB , error ) { db , err := sql . Open ( " " , a . Config . GetString ( " " ) + " " + a . Config . GetString ( " " ) + " " + a . Config . GetString ( " " ) ) utils . CheckErr ( err ) a . MySQLDatabase = db return db , nil }
SetupMySQLDatabase establishes the connexion with the MySQL database
SetupMySQLDatabase establishes the connexion with the MySQL database