Hi @Josh Barth,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
The error message you're seeing is related to SQL Server, not MySQL. The Microsoft.Data.SqlClient namespace is specific to SQL Server, and the error message is indicating that it's trying to connect to a SQL Server instance
This is likely because Azure Data Studio is trying to use the wrong connection type or settings for your MySQL database. MySQL and SQL Server are two different database management systems, and they have different connection protocols and settings.
"Microsoft.Data.SqlClient.SqlException (0x80131904): 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception (53): The network path was not found.
Here are the troubleshooting steps that might help you:
- Make sure the SQL Server instance is running. You can check the status of the SQL Server instance in the SQL Server Configuration Manager.
- Make sure the SQL Server Browser service is running. This service helps in connecting to named instances.
- Make sure the firewall is not blocking the connection. If you are connecting to a remote SQL Server instance, you might need to add an exception for the SQL Server port (1433 by default) in the firewall.
- The error message indicates that the network path was not found. Check if the server name and instance name are correct and accessible from your network.
- Double-check your connection string for any typos or incorrect parameters.
- Make sure SQL Server is configured to allow remote connections.
- Test the server connectivity using ping and telnet commands to ensure the server is reachable and listening on the correct port.
For detailed information, please refer the document: https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/connect/network-related-or-instance-specific-error-occurred-while-establishing-connection
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.