Why is my MySql Server connection string not working?

CloudyKooper

I'm using Visual Wev Developer 2012 and trying to connect to MySql Server on a shared hosting site. My connection string looks like this:

 Server="myserverAddress";Port="3306";Database="myDatabaseName";uid="myUserName";Pwd="myPassword"

HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.

I've tried with and without the quotes. What am i doing wrong here? I would really appreciate any help with this.

CloudyKooper

So my project was using the default database (SQL Express) even though I didn’t have a connection string pointing to it. The EF uses convention to attach the default database if you don’t specify by using a constructor like this:

 public class BloggingContext : DbContext

{

public BloggingContext()

    : base("BloggingDatabase")

{

}

}

Then this:

 <configuration>

   <connectionStrings>

<add name="BloggingCompactDatabase"

     providerName="System.Data.SqlServerCe.4.0"

     connectionString="Data Source=Blogging.sdf"/>

   </connectionStrings>

 </configuration>

I found it all here… http://msdn.microsoft.com/en-us/data/jj592674.aspx.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

general connection to a mysql server

分類Dev

mysql_real_escape_string() [function.mysql-real-escape-string] is preventing server connection

分類Dev

Why is my removeEventListener not working?

分類Dev

Can someone explain why my server/client don't work in a way they establish a connection?

分類Dev

Why is my solution for Super Reduced String(HackerRank) question working fine on my computer but giving wrong answers in HackerRank?

分類Dev

Why is my .after not working as intended?

分類Dev

Why is my exponential decay not working?

分類Dev

Why is my grep + regex not working?

分類Dev

Why is my JavaScriptSerializer().Deserialize() is not working?

分類Dev

Docker-compose container connection to MySql not working

分類Dev

Why my LAN connection is so slow?

分類Dev

Why is JQuery Code not working on Server?

分類Dev

How should I write my connection string?

分類Dev

Why Is MySQL Bridge Table Not Working?

分類Dev

Why doesn't my server attempt to use more resources for a heavy mysql search?

分類Dev

"Server" vs "Data Source" in connection string

分類Dev

Correct Connection string for accessing remote database server

分類Dev

ASP.NET connection string to SQL Server

分類Dev

My WiFi connection frequently stops working (no internet, not disconnecting)

分類Dev

In Go, why is my JSON decoding not working here?

分類Dev

Why is my csh script not working with special characters?

分類Dev

Why my proxy sentence is not working correctly?

分類Dev

Why is my Combine httpMethod post request not working?

分類Dev

Why is my remove event listener not working?

分類Dev

Why is my local website not working in IIS

分類Dev

Why is my worker working in a wrong thread?

分類Dev

Why is my SQL "INSERT INTO" query not working?

分類Dev

Why is my Google Event Tracking not working?

分類Dev

Why is my Miller Rabin algorithm not working (Haskell)?

Related 関連記事

  1. 1

    general connection to a mysql server

  2. 2

    mysql_real_escape_string() [function.mysql-real-escape-string] is preventing server connection

  3. 3

    Why is my removeEventListener not working?

  4. 4

    Can someone explain why my server/client don't work in a way they establish a connection?

  5. 5

    Why is my solution for Super Reduced String(HackerRank) question working fine on my computer but giving wrong answers in HackerRank?

  6. 6

    Why is my .after not working as intended?

  7. 7

    Why is my exponential decay not working?

  8. 8

    Why is my grep + regex not working?

  9. 9

    Why is my JavaScriptSerializer().Deserialize() is not working?

  10. 10

    Docker-compose container connection to MySql not working

  11. 11

    Why my LAN connection is so slow?

  12. 12

    Why is JQuery Code not working on Server?

  13. 13

    How should I write my connection string?

  14. 14

    Why Is MySQL Bridge Table Not Working?

  15. 15

    Why doesn't my server attempt to use more resources for a heavy mysql search?

  16. 16

    "Server" vs "Data Source" in connection string

  17. 17

    Correct Connection string for accessing remote database server

  18. 18

    ASP.NET connection string to SQL Server

  19. 19

    My WiFi connection frequently stops working (no internet, not disconnecting)

  20. 20

    In Go, why is my JSON decoding not working here?

  21. 21

    Why is my csh script not working with special characters?

  22. 22

    Why my proxy sentence is not working correctly?

  23. 23

    Why is my Combine httpMethod post request not working?

  24. 24

    Why is my remove event listener not working?

  25. 25

    Why is my local website not working in IIS

  26. 26

    Why is my worker working in a wrong thread?

  27. 27

    Why is my SQL "INSERT INTO" query not working?

  28. 28

    Why is my Google Event Tracking not working?

  29. 29

    Why is my Miller Rabin algorithm not working (Haskell)?

ホットタグ

アーカイブ