我正在使用C#,我正在尝试连接到由00webhost托管的
MySQL数据库.
我在线路上遇到错误.打开():
there is no mysql host with this parameters.
我已经检查过,一切似乎都很好.
string MyConString = "SERVER=mysql7.000webhost.com;" +
"DATABASE=a455555_test;" +
"UID=a455555_me;" +
"PASSWORD=something;";
MySqlConnection connection = new MySqlConnection(MyConString);
MySqlCommand command = connection.CreateCommand();
MySqlDataReader Reader;
command.CommandText = "INSERT Test SET lat=" +
OSGconv.deciLat + ",long=" + OSGconv.deciLon;
connection.Open();
Reader = command.ExecuteReader();
connection.Close();
这个连接字符串有什么问题?