To make WebMatrix better, I suggest you ...

Improve database MySql

Не удалось создать базу данных.

Unable to connect to any of the specified MySQL hosts.

MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.
в MySql.Data.MySqlClient.NativeDriver.Open()
в MySql.Data.MySqlClient.Driver.Open()
в MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
в MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
в MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
в MySql.Data.MySqlClient.MySqlPool.GetConnection()
в MySql.Data.MySqlClient.MySqlConnection.Open()
в Microsoft.WebMatrix.DatabaseManager.MySqlDatabase.MySqlDatabaseProvider.CreateDatabase(String adminConnectionString, String databaseName, String userName, String password)
в Microsoft.WebMatrix.DatabaseManager.IisDbManagerModuleService.CreateDatabase(DatabaseConnection databaseConnection, String configPathState)
в Microsoft.WebMatrix.DatabaseManager.Client.DBManagerController.CreateDatabase(ProviderInfo providerInfo, DatabaseConnection databaseConnection)
в Microsoft.WebMatrix.DatabaseManager.Client.DBManagerController.<>c__DisplayClassa.<AddDatabase>b__6()
в System.Threading.Tasks.Task.InnerInvoke()
в System.Threading.Tasks.Task.Execute()

1 vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    DmitryDmitry shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • DunnockDunnock commented  ·   ·  Flag as inappropriate

        I got the same errors also, but solutions lied below

        #1 I had not give MySQL host possibility listen outside connections
        #2 Did not give any rights to DB for the user who is trying to connect (should be different error tho)

      • Ye YuYe Yu commented  ·   ·  Flag as inappropriate

        it seems your mysql database server configuration issue.
        could you download a mysql client and try to connect without WM?

        what's your mysql database server port number?

      Feedback and Knowledge Base