Connecting arduino with Mysql getting an error

I was following a tutorial on how to connect arduino with mysql and it gave me the following code

#include <mysql.h>

char *host, *user, *pass, *db;
int isconnected = 0;

void setup()
{
	Serial.begin(9600);
	host = "localhost";
	user = "root";
	pass = "";
	db = "arduino";
	isconnected = mysql_connect(host,user,pass,db);
	if(isconnected){
		Serial.print("Connected to ");
                Serial.println(host);
	}
	else{
		Serial.println("Connection failed.");
	}
	mysql_close();
}

void loop(){}

When uploading this code i am getting the error: "C:\Users\ando9\Documents\Arduino\libraries\mysql\mysql.cpp:10:5: note: ‘int mysql_connect(char*, char*, char*, char*)’ previously defined here

int mysql_connect(char *host, char *user, char *pass, char *db){

^

exit status 1
Error compiling for board Arduino/Genuino Uno."

Any solutions or explanations on what the problem is?