This article is a mirror article of machine translation, please click here to jump to the original article.

View: 21063|Reply: 0

[Source] .NET MySQL database connection string

[Copy link]
Posted on 6/16/2017 2:04:42 PM | | |
Error creating object with name 'NHibernateSessionFactory' defined in 'assembly [ITSVSE. Repositories, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null], resource [ITSVSE. Repositories.Configuration.RepositoryBase.xml] line 21' : Initialization of object failed : Unable to connect to any of the specified MySQL hosts.]


When deploying the project, an error was reported, and at first I thought it was a missing dll, but finally it turned out to be a problem with the database connection string

The connection string for SQL Server is as follows:

If the database is not the default port, it will be filled in as "IP, port"

The reason for the error is that my mysql is written in the format of SQL Server...

The correct way to write it is as follows:







Previous:IIS 7 Application Pool Automatic Recycling Solution for Shutdown
Next:Sublime Text 3 Latest Available Registration Code (Crack-Free)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com