Oracle 5.0 Reference Manual page 1886

Table of Contents

Advertisement

</membership>
Note that the name for the connection string to be used to connect to the server that contains the
membership database is LocalMySqlServer.
The
autogenerateschema="true"
create, or upgrade, the schema on the database server, to contain the required tables for storing
membership information.
7. It is now necessary to create the connection string referenced in the previous step. Load the web
site's
web.config
8. Locate the section marked <connectionStrings>. Add the following connection string
information:
<connectionStrings>
<remove name="LocalMySqlServer"/>
<add name="LocalMySqlServer"
connectionString="Datasource=localhost;Database=users;uid=root;pwd=password;"
providerName="MySql.Data.MySqlClient"/>
</connectionStrings>
The database specified is the one created in the first step. You could alternatively have used an
existing database.
9. At this point build the solution to ensure no errors are present. This can be done by selecting Build,
Build Solution from the main menu, or pressing F6.
10. ASP.NET supports the concept of locally and remotely authenticated users. With local
authentication the user is validated using their Windows credentials when they attempt to access
the web site. This can be useful in an Intranet environment. With remote authentication, a user is
prompted for their login details when accessing the web site, and these credentials are checked
against the membership information stored in a database server such as MySQL Server. You will
now see how to choose this form of authentication.
Start the ASP.NET Web Site Administration Tool. This can be done quickly by clicking the small
hammer/Earth icon in the Solution Explorer. You can also launch this tool by selecting Website,
ASP.NET Configuration from the main menu.
11. In the ASP.NET Web Site Administration Tool click the Security tab.
12. Now click the User Authentication Type link.
13. Select the From the internet radio button. The web site will now need to provide a form to allow
the user to enter their login details. These will be checked against membership information stored in
the MySQL database.
Connector/Net Tutorials
attribute will cause MySQL Connector/Net to silently
file into Visual Studio.
1866

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents