Hello everybody! I just created an application with the C# that is used to manage a MySQL database, I tested the connection, while it works well, but when connecting this exception launches:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
This is my source code:
try {
string connectionString = "SERVER=127.0.0.1; DATABASE=mli; UID=root; PASSWORD=";
SqlConnection cn = new SqlConnection(connectionString);
cn.Open();
} catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
please, is there anyone who can help me