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()
We’re looking into this. Thank you.
2 comments
-
Dunnock
commented
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 Yu
commented
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?