Hello,
I am trying to connect to a database "database1" using C#, however, everytime that I try to connect I get this error:
Unable to connect to any of the specified MySQL hosts.
This is the code that I am using to connect to database1
string connString = "Data Source=localhost; Database=Database1.mdf; User ID=root; Password=root";
MySqlConnection conn = new MySqlConnection(connString);
conn.Open();
Can anyone recommend anything / give me some help?
Thank you!