I am developing a ASP.NET MVC 5 web application with Entity Framework 6 using a MySQL database. My Connection string in web.config looks like this:
<connectionStrings>
<add name="IdentityDB" connectionString="Data Source=localhost; User Id=user;Password=Password;database=myDatabase;" providerName="MySql.Data.MySqlClient"/>
</connectionStrings>
So, my question is: Are there some security issues about the connection string being in web.config
? Because when I publish the application, the web.config
file will be in www.
Is that a problem? How can I hide the connection string or the password?
Thanks, Beardy Bear