在Go中连接到db mysql

I am currently working oin a project in go. I need to connect to mysql db and do some stuff. Currently, i am having trouble with the connection.

First, i load and store the db crdentials from various possible sources (CLI, config file or startup parameter, depending on situation)

dbCredentials = DatabaseCredentials{DRIVER_NAME,BOT_LOGIN_NAME + ":" + BOT_PASSWORD + "@tcp(" + HOST_NAME + ")/" + NAME_OF_DB}

Later i try to open the connection:

db, err := sql.Open(dbCredentials.driverName, dbCredentials.dataSourceName) 
checkErr(err)
defer db.Close()

But i always get Error 1045: Access denied for user 'bot'@'127.0.0.1' (using password: YES)

The weird thing is the very same section of code used to work a couple of days ago and i am not aware of any changes that could cause this behaviour. I also didnt make any changes on the database.

Do you have any idea what i am doing wrong? Some input regarding what to look at for finding the error would be helpful.

Problem has disappeared as mysteriously as it appeared.