0

domainindia.org に Windows サーバーがあります。mysql 用に 1 人のユーザーを作成しました。C# で次の接続文字列を使用して MySQL に接続しようとしています。

 Driver={MySQL ODBC 3.51 Driver};Server=IPaddress;Database=db1;User=user;Password=password; Option=3; 

接続できません。この接続文字列の何が問題なのか教えてもらえますか? 同じ接続文字列がローカルで機能しています。

その権限を付与しようとしましたが、クエリを実行できません。

サーバーに接続する方法を教えてもらえますか?

これが私のweb.configです

<?xml version="1.0"?>
<!--
 For more information on how to configure your ASP.NET application, please visit
 http://go.microsoft.com/fwlink/?LinkId=169433
 -->
<configuration>

<connectionStrings>

<add name="dbConnection" connectionString= "Driver={MySQL ODBC 3.51 Driver};Server=IPadress;Database=db1;User=Myuser;Password=myPassword;Option=3;"/>


  </connectionStrings> 
<system.web>
    <compilation debug="true" targetFramework="4.0"/>
</system.web>
  </configuration>
4

0 に答える 0