这是我来自Visual Studio的连接字符串(服务器资源管理器保存了密码):
server=66.147.244.102; User Id=correct username; Persist Security Info=True; database=correct database name
看起来像Microsoft SQL Server连接字符串,您将与 SqlConnection
. SqlConnection
只知道如何连接到Microsoft SQL Server数据库...您需要使用 MySqlConnection
连接到您的MySQL数据库。