在使用cpanel的情况下无法连接到特定主机,但在c应用程序的localhost上可以完美地工作。我的连接字符串是。给出错误“无法连接到特定主机”
string server = "abc.com";
string database = "abc";
string user = "abc";
string password = "abc";
string port = "3306";
string sslM = "none";
string connectionString = String.Format("server={0};port={1};user id={2}; password={3}; database={4}; SslMode={5}", server, port, user, password, database, sslM);
MySqlConnection connection = new MySqlConnection(connectionString);
暂无答案!
目前还没有任何答案,快来回答吧!